import { V as Qt, A as qn, t as Vn, a as Wn } from "./Expo-CON0LXBg.js";
import {
  z as Un,
  n as kt,
  j as We,
  cR as Kn,
  cS as Yn,
  cT as Xn,
  cU as Gn,
  v as Zn,
  cV as Qn,
  cW as Jn,
  cX as ts,
  cY as it,
  cZ as de,
  c_ as Ht,
  c$ as fe,
  d0 as Dr,
  d1 as es,
  bC as Rr,
  i as di,
  C as Br,
  E as $r,
  cw as is,
  aJ as rs,
  d2 as tr,
  d3 as er,
  d4 as ir,
  d5 as rr,
  d6 as ns,
  d7 as ss,
  d8 as os,
  d9 as Pi,
  B as as,
  bB as Fr,
  da as us,
  db as ls,
  bv as cs,
  dc as li,
  p as fi,
  dd as fs,
  bd as je,
  aB as zr,
  aL as qr,
  m as ds,
  de as Gi,
  df as hs,
  aO as Vr,
  dg as ps,
  dh as gs,
  di as ms,
  dj as vs,
  dk as ys,
  dl as Wr,
  dm as Ur,
  dn as bs,
  dp as xs,
  dq as Ir,
  dr as Ss,
  ds as _s,
  dt as ws,
  du as As,
  dv as Mr,
  bw as Cs,
  bx as Ts,
  dw as ks,
  bX as Ps,
} from "./index-Dr7F7vam.js";
import { V as he, c as Kr, g as Yr, u as Os } from "./vendor-BOsc3Pjv.js";
import "./AxProgressSpinner-BVOHowrq.js";
import "./AxProjectName-Bl9u9nDZ.js";
import "./AxInputSearch-CBMtdAab.js";
import "./shortkey-ggEn3zUt.js";
const Es = he.extend({
  components: { AxDialog: Un },
  props: { value: { type: Boolean, default: !1 } },
  computed: {
    isActive: {
      get() {
        return this.value;
      },
      set(n) {
        this.$emit("input", n);
      },
    },
  },
});
var Ds = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s(
        "AxDialog",
        {
          model: {
            value: e.isActive,
            callback: function (l) {
              e.isActive = l;
            },
            expression: "isActive",
          },
        },
        [
          s("div", { staticClass: "expo-popup" }, [
            s(
              "div",
              { staticClass: "expo-popup__header" },
              [e._t("header")],
              2
            ),
            s("div", { staticClass: "expo-popup__body" }, [e._t("default")], 2),
            s(
              "div",
              { staticClass: "expo-popup__footer" },
              [e._t("footer")],
              2
            ),
          ]),
        ]
      )
    );
  },
  Is = [],
  Ms = kt(Es, Ds, Is, !1, null, "7a61cf8d", null, null);
const nr = Ms.exports,
  js = Qt.extend({
    components: { AxButton: We, ExpoPopup: nr },
    props: { selectedItems: { type: Number, default: 0 } },
    data() {
      return { deleteConfirmationPopup: !1 };
    },
    computed: {},
    methods: {
      selectAllArtboards() {
        if (!this.currentProject) return;
        const { shortcut: n } = this.currentProject;
        this.$store.commit(new Kn(n));
      },
      deselectAllArtboards() {
        if (!this.currentProject) return;
        const { shortcut: n } = this.currentProject;
        this.$store.commit(new Yn(n));
      },
      async archiveSelectedArtboards() {
        if (this.anyArtboardsSelected) {
          if (!this.currentProject) return;
          const { shortcut: n } = this.currentProject;
          await this.$store.dispatch(new Xn(n));
        }
      },
      openDeleteConfirmationPopup() {
        this.anyArtboardsSelected && (this.deleteConfirmationPopup = !0);
      },
      closeDeleteConfirmationPopup() {
        this.deleteConfirmationPopup = !1;
      },
      async deleteSelectedArtboards() {
        if (
          (this.closeDeleteConfirmationPopup(),
          !!this.currentProject && this.anyArtboardsSelected)
        ) {
          const { shortcut: n } = this.currentProject;
          await this.$store.dispatch(new Gn(n));
        }
      },
    },
  });
var Ns = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s(
        "div",
        { staticClass: "row g-0 flex-nowrap floating-fixed-container" },
        [
          s(
            "div",
            { staticClass: "col-auto" },
            [
              s("div", { staticClass: "count-container" }, [
                e._v(" " + e._s(e.selectedItems) + " "),
              ]),
              s("span", { staticClass: "h4 label screens-selected-label" }, [
                e._v(" Screens Selected "),
              ]),
              s(
                "AxButton",
                {
                  staticClass: "label select-all-btn",
                  attrs: { color: "link" },
                  on: { click: e.selectAllArtboards },
                },
                [e._v(" Select All ")]
              ),
            ],
            1
          ),
          s(
            "div",
            { staticClass: "col-auto actions-buttons" },
            [
              s(
                "AxButton",
                {
                  staticClass: "delete-screens-btn",
                  attrs: { color: "secondary", small: "" },
                  on: { click: e.openDeleteConfirmationPopup },
                },
                [e._v(" Delete Screens ")]
              ),
              s(
                "AxButton",
                {
                  staticClass: "cancel-selection-btn label",
                  attrs: { color: "link" },
                  on: { click: e.deselectAllArtboards },
                },
                [e._v(" Cancel ")]
              ),
            ],
            1
          ),
          s("ExpoPopup", {
            staticClass: "delete-selected-popup",
            scopedSlots: e._u([
              {
                key: "header",
                fn: function () {
                  return [
                    s("div", { staticClass: "form-title" }, [
                      e._v(" Delete Screens? "),
                    ]),
                  ];
                },
                proxy: !0,
              },
              {
                key: "default",
                fn: function () {
                  return [s("p", [e._v("This cannot be undone")])];
                },
                proxy: !0,
              },
              {
                key: "footer",
                fn: function () {
                  return [
                    s(
                      "div",
                      { staticClass: "d-flex justify-content-between" },
                      [
                        s(
                          "AxButton",
                          {
                            attrs: {
                              type: "button",
                              color: "secondary",
                              medium: "",
                            },
                            on: { click: e.closeDeleteConfirmationPopup },
                          },
                          [e._v(" No, Keep Screens ")]
                        ),
                        s(
                          "AxButton",
                          {
                            attrs: {
                              type: "button",
                              medium: "",
                              color: "danger",
                            },
                            on: { click: e.deleteSelectedArtboards },
                          },
                          [e._v(" Yes, Delete Screens ")]
                        ),
                      ],
                      1
                    ),
                  ];
                },
                proxy: !0,
              },
            ]),
            model: {
              value: e.deleteConfirmationPopup,
              callback: function (l) {
                e.deleteConfirmationPopup = l;
              },
              expression: "deleteConfirmationPopup",
            },
          }),
        ],
        1
      )
    );
  },
  Ls = [],
  Hs = kt(js, Ns, Ls, !1, null, "77617e95", null, null);
const Rs = Hs.exports,
  Bs = Qt.extend({
    components: { AxSlider: qn, AxButton: We },
    data() {
      return {
        rememberedZoom: this.zoom,
        refreshingScreens: !1,
        sliderStyle: { width: "200px" },
      };
    },
    computed: {
      projectZoom: {
        get() {
          return this.zoom;
        },
        set(n) {
          this.setZoom(n);
        },
      },
      isList() {
        return this.projectZoom === 100;
      },
      style() {
        return {
          flexBasis: `${this.projectZoom}%`,
          maxWidth: `${this.projectZoom}%`,
        };
      },
      preview() {
        const n = this.$route.params;
        if (n.screen) return { name: Zn["expo.preview"].name, params: n };
      },
    },
    methods: {
      async refreshScreens() {
        if (this.currentProject) {
          this.refreshingScreens = !0;
          try {
            const { shortcut: n } = this.currentProject;
            await this.$store.dispatch(new Qn(n));
          } catch {}
          this.refreshingScreens = !1;
        }
      },
      setGrid() {
        this.setZoom(this.rememberedZoom);
      },
      setList() {
        this.currentProject &&
          ((this.rememberedZoom = this.currentProject.projectZoom),
          this.setZoom(100));
      },
      setZoom(n) {
        if (!this.currentProject) return;
        const { shortcut: e } = this.currentProject;
        this.$store.commit(new Jn(e, n));
      },
      async saveZoom() {
        if (!this.currentProject) return;
        const { shortcut: n } = this.currentProject;
        await this.$store.dispatch(new ts(n, this.projectZoom));
      },
    },
  });
var $s = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s(
        "div",
        { staticClass: "expo-layout-panel" },
        [
          s("div", { style: e.sliderStyle }),
          s(
            "div",
            { staticClass: "expo-layout-button" },
            [
              s(
                "AxButton",
                { attrs: { color: "secondary", to: e.preview, medium: "" } },
                [e._v(" 预览原型 ")]
              ),
            ],
            1
          ),
          s("AxSlider", {
            style: e.sliderStyle,
            attrs: { min: 0, max: 100, change: e.saveZoom },
            model: {
              value: e.projectZoom,
              callback: function (l) {
                e.projectZoom = e._n(l);
              },
              expression: "projectZoom",
            },
          }),
        ],
        1
      )
    );
  },
  Fs = [],
  zs = kt(Bs, $s, Fs, !1, null, "db389c3b", null, null);
const qs = zs.exports,
  Vs = he.extend({});
var Ws = function () {
    var e = this;
    return e._self._c, e._self._setupProxy, e._m(0);
  },
  Us = [
    function () {
      var n = this,
        e = n._self._c;
      return (
        n._self._setupProxy,
        e("div", { attrs: { title: "Loading..." } }, [
          n._v(" 加载中... "),
          e("div", {
            staticClass: "bounce1",
            staticStyle: { width: "24px", height: "24px" },
          }),
          e("div", {
            staticClass: "bounce2",
            staticStyle: { width: "24px", height: "24px" },
          }),
          e("div", {
            staticClass: "bounce3",
            staticStyle: { width: "24px", height: "24px" },
          }),
        ])
      );
    },
  ],
  Ks = kt(Vs, Ws, Us, !1, null, null, null, null);
const Ys = Ks.exports;
var Xr = { exports: {} };
/*!
 * jQuery JavaScript Library v3.7.1
 * https://jquery.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-08-28T13:37Z
 */ (function (n) {
  (function (e, s) {
    n.exports = e.document
      ? s(e, !0)
      : function (l) {
          if (!l.document)
            throw new Error("jQuery 需要一个带有文档的窗口");
          return s(l);
        };
  })(typeof window < "u" ? window : Kr, function (e, s) {
    var l = [],
      r = Object.getPrototypeOf,
      f = l.slice,
      p = l.flat
        ? function (t) {
            return l.flat.call(t);
          }
        : function (t) {
            return l.concat.apply([], t);
          },
      g = l.push,
      c = l.indexOf,
      w = {},
      S = w.toString,
      v = w.hasOwnProperty,
      T = v.toString,
      x = T.call(Object),
      A = {},
      P = function (i) {
        return (
          typeof i == "function" &&
          typeof i.nodeType != "number" &&
          typeof i.item != "function"
        );
      },
      j = function (i) {
        return i != null && i === i.window;
      },
      D = e.document,
      K = { type: !0, src: !0, nonce: !0, noModule: !0 };
    function R(t, i, o) {
      o = o || D;
      var u,
        d,
        h = o.createElement("script");
      if (((h.text = t), i))
        for (u in K)
          (d = i[u] || (i.getAttribute && i.getAttribute(u))),
            d && h.setAttribute(u, d);
      o.head.appendChild(h).parentNode.removeChild(h);
    }
    function W(t) {
      return t == null
        ? t + ""
        : typeof t == "object" || typeof t == "function"
        ? w[S.call(t)] || "object"
        : typeof t;
    }
    var Y = "3.7.1",
      F = /HTML$/i,
      a = function (t, i) {
        return new a.fn.init(t, i);
      };
    (a.fn = a.prototype =
      {
        jquery: Y,
        constructor: a,
        length: 0,
        toArray: function () {
          return f.call(this);
        },
        get: function (t) {
          return t == null
            ? f.call(this)
            : t < 0
            ? this[t + this.length]
            : this[t];
        },
        pushStack: function (t) {
          var i = a.merge(this.constructor(), t);
          return (i.prevObject = this), i;
        },
        each: function (t) {
          return a.each(this, t);
        },
        map: function (t) {
          return this.pushStack(
            a.map(this, function (i, o) {
              return t.call(i, o, i);
            })
          );
        },
        slice: function () {
          return this.pushStack(f.apply(this, arguments));
        },
        first: function () {
          return this.eq(0);
        },
        last: function () {
          return this.eq(-1);
        },
        even: function () {
          return this.pushStack(
            a.grep(this, function (t, i) {
              return (i + 1) % 2;
            })
          );
        },
        odd: function () {
          return this.pushStack(
            a.grep(this, function (t, i) {
              return i % 2;
            })
          );
        },
        eq: function (t) {
          var i = this.length,
            o = +t + (t < 0 ? i : 0);
          return this.pushStack(o >= 0 && o < i ? [this[o]] : []);
        },
        end: function () {
          return this.prevObject || this.constructor();
        },
        push: g,
        sort: l.sort,
        splice: l.splice,
      }),
      (a.extend = a.fn.extend =
        function () {
          var t,
            i,
            o,
            u,
            d,
            h,
            m = arguments[0] || {},
            _ = 1,
            b = arguments.length,
            k = !1;
          for (
            typeof m == "boolean" && ((k = m), (m = arguments[_] || {}), _++),
              typeof m != "object" && !P(m) && (m = {}),
              _ === b && ((m = this), _--);
            _ < b;
            _++
          )
            if ((t = arguments[_]) != null)
              for (i in t)
                (u = t[i]),
                  !(i === "__proto__" || m === u) &&
                    (k && u && (a.isPlainObject(u) || (d = Array.isArray(u)))
                      ? ((o = m[i]),
                        d && !Array.isArray(o)
                          ? (h = [])
                          : !d && !a.isPlainObject(o)
                          ? (h = {})
                          : (h = o),
                        (d = !1),
                        (m[i] = a.extend(k, h, u)))
                      : u !== void 0 && (m[i] = u));
          return m;
        }),
      a.extend({
        expando: "jQuery" + (Y + Math.random()).replace(/\D/g, ""),
        isReady: !0,
        error: function (t) {
          throw new Error(t);
        },
        noop: function () {},
        isPlainObject: function (t) {
          var i, o;
          return !t || S.call(t) !== "[object Object]"
            ? !1
            : ((i = r(t)),
              i
                ? ((o = v.call(i, "constructor") && i.constructor),
                  typeof o == "function" && T.call(o) === x)
                : !0);
        },
        isEmptyObject: function (t) {
          var i;
          for (i in t) return !1;
          return !0;
        },
        globalEval: function (t, i, o) {
          R(t, { nonce: i && i.nonce }, o);
        },
        each: function (t, i) {
          var o,
            u = 0;
          if (rt(t))
            for (o = t.length; u < o && i.call(t[u], u, t[u]) !== !1; u++);
          else for (u in t) if (i.call(t[u], u, t[u]) === !1) break;
          return t;
        },
        text: function (t) {
          var i,
            o = "",
            u = 0,
            d = t.nodeType;
          if (!d) for (; (i = t[u++]); ) o += a.text(i);
          return d === 1 || d === 11
            ? t.textContent
            : d === 9
            ? t.documentElement.textContent
            : d === 3 || d === 4
            ? t.nodeValue
            : o;
        },
        makeArray: function (t, i) {
          var o = i || [];
          return (
            t != null &&
              (rt(Object(t))
                ? a.merge(o, typeof t == "string" ? [t] : t)
                : g.call(o, t)),
            o
          );
        },
        inArray: function (t, i, o) {
          return i == null ? -1 : c.call(i, t, o);
        },
        isXMLDoc: function (t) {
          var i = t && t.namespaceURI,
            o = t && (t.ownerDocument || t).documentElement;
          return !F.test(i || (o && o.nodeName) || "HTML");
        },
        merge: function (t, i) {
          for (var o = +i.length, u = 0, d = t.length; u < o; u++)
            t[d++] = i[u];
          return (t.length = d), t;
        },
        grep: function (t, i, o) {
          for (var u, d = [], h = 0, m = t.length, _ = !o; h < m; h++)
            (u = !i(t[h], h)), u !== _ && d.push(t[h]);
          return d;
        },
        map: function (t, i, o) {
          var u,
            d,
            h = 0,
            m = [];
          if (rt(t))
            for (u = t.length; h < u; h++)
              (d = i(t[h], h, o)), d != null && m.push(d);
          else for (h in t) (d = i(t[h], h, o)), d != null && m.push(d);
          return p(m);
        },
        guid: 1,
        support: A,
      }),
      typeof Symbol == "function" &&
        (a.fn[Symbol.iterator] = l[Symbol.iterator]),
      a.each(
        "Boolean Number String Function Array Date RegExp Object Error Symbol".split(
          " "
        ),
        function (t, i) {
          w["[object " + i + "]"] = i.toLowerCase();
        }
      );
    function rt(t) {
      var i = !!t && "length" in t && t.length,
        o = W(t);
      return P(t) || j(t)
        ? !1
        : o === "array" ||
            i === 0 ||
            (typeof i == "number" && i > 0 && i - 1 in t);
    }
    function Z(t, i) {
      return t.nodeName && t.nodeName.toLowerCase() === i.toLowerCase();
    }
    var pt = l.pop,
      ut = l.sort,
      ft = l.splice,
      V = "[\\x20\\t\\r\\n\\f]",
      xt = new RegExp("^" + V + "+|((?:^|[^\\\\])(?:\\\\.)*)" + V + "+$", "g");
    a.contains = function (t, i) {
      var o = i && i.parentNode;
      return (
        t === o ||
        !!(
          o &&
          o.nodeType === 1 &&
          (t.contains
            ? t.contains(o)
            : t.compareDocumentPosition && t.compareDocumentPosition(o) & 16)
        )
      );
    };
    var Tt = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;
    function Et(t, i) {
      return i
        ? t === "\0"
          ? "�"
          : t.slice(0, -1) +
            "\\" +
            t.charCodeAt(t.length - 1).toString(16) +
            " "
        : "\\" + t;
    }
    a.escapeSelector = function (t) {
      return (t + "").replace(Tt, Et);
    };
    var ot = D,
      At = g;
    (function () {
      var t,
        i,
        o,
        u,
        d,
        h = At,
        m,
        _,
        b,
        k,
        M,
        L = a.expando,
        E = 0,
        z = 0,
        lt = Si(),
        bt = Si(),
        ht = Si(),
        jt = Si(),
        It = function (y, C) {
          return y === C && (d = !0), 0;
        },
        oe =
          "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
        ae =
          "(?:\\\\[\\da-fA-F]{1,6}" +
          V +
          "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",
        vt =
          "\\[" +
          V +
          "*(" +
          ae +
          ")(?:" +
          V +
          "*([*^$|!~]?=)" +
          V +
          `*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(` +
          ae +
          "))|)" +
          V +
          "*\\]",
        ze =
          ":(" +
          ae +
          `)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|` +
          vt +
          ")*)|.*)\\)|)",
        St = new RegExp(V + "+", "g"),
        Pt = new RegExp("^" + V + "*," + V + "*"),
        oi = new RegExp("^" + V + "*([>+~]|" + V + ")" + V + "*"),
        qi = new RegExp(V + "|>"),
        ue = new RegExp(ze),
        ai = new RegExp("^" + ae + "$"),
        le = {
          ID: new RegExp("^#(" + ae + ")"),
          CLASS: new RegExp("^\\.(" + ae + ")"),
          TAG: new RegExp("^(" + ae + "|[*])"),
          ATTR: new RegExp("^" + vt),
          PSEUDO: new RegExp("^" + ze),
          CHILD: new RegExp(
            "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" +
              V +
              "*(even|odd|(([+-]|)(\\d*)n|)" +
              V +
              "*(?:([+-]|)" +
              V +
              "*(\\d+)|))" +
              V +
              "*\\)|)",
            "i"
          ),
          bool: new RegExp("^(?:" + oe + ")$", "i"),
          needsContext: new RegExp(
            "^" +
              V +
              "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
              V +
              "*((?:-\\d)?\\d*)" +
              V +
              "*\\)|)(?=[^-]|$)",
            "i"
          ),
        },
        De = /^(?:input|select|textarea|button)$/i,
        Ie = /^h\d$/i,
        Xt = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
        Vi = /[+~]/,
        _e = new RegExp(
          "\\\\[\\da-fA-F]{1,6}" + V + "?|\\\\([^\\r\\n\\f])",
          "g"
        ),
        we = function (y, C) {
          var O = "0x" + y.slice(1) - 65536;
          return (
            C ||
            (O < 0
              ? String.fromCharCode(O + 65536)
              : String.fromCharCode((O >> 10) | 55296, (O & 1023) | 56320))
          );
        },
        Ln = function () {
          Me();
        },
        Hn = wi(
          function (y) {
            return y.disabled === !0 && Z(y, "fieldset");
          },
          { dir: "parentNode", next: "legend" }
        );
      function Rn() {
        try {
          return m.activeElement;
        } catch {}
      }
      try {
        h.apply((l = f.call(ot.childNodes)), ot.childNodes),
          l[ot.childNodes.length].nodeType;
      } catch {
        h = {
          apply: function (C, O) {
            At.apply(C, f.call(O));
          },
          call: function (C) {
            At.apply(C, f.call(arguments, 1));
          },
        };
      }
      function wt(y, C, O, I) {
        var N,
          U,
          X,
          et,
          G,
          gt,
          at,
          ct = C && C.ownerDocument,
          mt = C ? C.nodeType : 9;
        if (
          ((O = O || []),
          typeof y != "string" || !y || (mt !== 1 && mt !== 9 && mt !== 11))
        )
          return O;
        if (!I && (Me(C), (C = C || m), b)) {
          if (mt !== 11 && (G = Xt.exec(y)))
            if ((N = G[1])) {
              if (mt === 9)
                if ((X = C.getElementById(N))) {
                  if (X.id === N) return h.call(O, X), O;
                } else return O;
              else if (
                ct &&
                (X = ct.getElementById(N)) &&
                wt.contains(C, X) &&
                X.id === N
              )
                return h.call(O, X), O;
            } else {
              if (G[2]) return h.apply(O, C.getElementsByTagName(y)), O;
              if ((N = G[3]) && C.getElementsByClassName)
                return h.apply(O, C.getElementsByClassName(N)), O;
            }
          if (!jt[y + " "] && (!k || !k.test(y))) {
            if (((at = y), (ct = C), mt === 1 && (qi.test(y) || oi.test(y)))) {
              for (
                ct = (Vi.test(y) && Wi(C.parentNode)) || C,
                  (ct != C || !A.scope) &&
                    ((et = C.getAttribute("id"))
                      ? (et = a.escapeSelector(et))
                      : C.setAttribute("id", (et = L))),
                  gt = ui(y),
                  U = gt.length;
                U--;

              )
                gt[U] = (et ? "#" + et : ":scope") + " " + _i(gt[U]);
              at = gt.join(",");
            }
            try {
              return h.apply(O, ct.querySelectorAll(at)), O;
            } catch {
              jt(y, !0);
            } finally {
              et === L && C.removeAttribute("id");
            }
          }
        }
        return Er(y.replace(xt, "$1"), C, O, I);
      }
      function Si() {
        var y = [];
        function C(O, I) {
          return (
            y.push(O + " ") > i.cacheLength && delete C[y.shift()],
            (C[O + " "] = I)
          );
        }
        return C;
      }
      function ie(y) {
        return (y[L] = !0), y;
      }
      function Xe(y) {
        var C = m.createElement("fieldset");
        try {
          return !!y(C);
        } catch {
          return !1;
        } finally {
          C.parentNode && C.parentNode.removeChild(C), (C = null);
        }
      }
      function Bn(y) {
        return function (C) {
          return Z(C, "input") && C.type === y;
        };
      }
      function $n(y) {
        return function (C) {
          return (Z(C, "input") || Z(C, "button")) && C.type === y;
        };
      }
      function Pr(y) {
        return function (C) {
          return "form" in C
            ? C.parentNode && C.disabled === !1
              ? "label" in C
                ? "label" in C.parentNode
                  ? C.parentNode.disabled === y
                  : C.disabled === y
                : C.isDisabled === y || (C.isDisabled !== !y && Hn(C) === y)
              : C.disabled === y
            : "label" in C
            ? C.disabled === y
            : !1;
        };
      }
      function qe(y) {
        return ie(function (C) {
          return (
            (C = +C),
            ie(function (O, I) {
              for (var N, U = y([], O.length, C), X = U.length; X--; )
                O[(N = U[X])] && (O[N] = !(I[N] = O[N]));
            })
          );
        });
      }
      function Wi(y) {
        return y && typeof y.getElementsByTagName < "u" && y;
      }
      function Me(y) {
        var C,
          O = y ? y.ownerDocument || y : ot;
        return (
          O == m ||
            O.nodeType !== 9 ||
            !O.documentElement ||
            ((m = O),
            (_ = m.documentElement),
            (b = !a.isXMLDoc(m)),
            (M = _.matches || _.webkitMatchesSelector || _.msMatchesSelector),
            _.msMatchesSelector &&
              ot != m &&
              (C = m.defaultView) &&
              C.top !== C &&
              C.addEventListener("unload", Ln),
            (A.getById = Xe(function (I) {
              return (
                (_.appendChild(I).id = a.expando),
                !m.getElementsByName || !m.getElementsByName(a.expando).length
              );
            })),
            (A.disconnectedMatch = Xe(function (I) {
              return M.call(I, "*");
            })),
            (A.scope = Xe(function () {
              return m.querySelectorAll(":scope");
            })),
            (A.cssHas = Xe(function () {
              try {
                return m.querySelector(":has(*,:jqfake)"), !1;
              } catch {
                return !0;
              }
            })),
            A.getById
              ? ((i.filter.ID = function (I) {
                  var N = I.replace(_e, we);
                  return function (U) {
                    return U.getAttribute("id") === N;
                  };
                }),
                (i.find.ID = function (I, N) {
                  if (typeof N.getElementById < "u" && b) {
                    var U = N.getElementById(I);
                    return U ? [U] : [];
                  }
                }))
              : ((i.filter.ID = function (I) {
                  var N = I.replace(_e, we);
                  return function (U) {
                    var X =
                      typeof U.getAttributeNode < "u" &&
                      U.getAttributeNode("id");
                    return X && X.value === N;
                  };
                }),
                (i.find.ID = function (I, N) {
                  if (typeof N.getElementById < "u" && b) {
                    var U,
                      X,
                      et,
                      G = N.getElementById(I);
                    if (G) {
                      if (((U = G.getAttributeNode("id")), U && U.value === I))
                        return [G];
                      for (et = N.getElementsByName(I), X = 0; (G = et[X++]); )
                        if (
                          ((U = G.getAttributeNode("id")), U && U.value === I)
                        )
                          return [G];
                    }
                    return [];
                  }
                })),
            (i.find.TAG = function (I, N) {
              return typeof N.getElementsByTagName < "u"
                ? N.getElementsByTagName(I)
                : N.querySelectorAll(I);
            }),
            (i.find.CLASS = function (I, N) {
              if (typeof N.getElementsByClassName < "u" && b)
                return N.getElementsByClassName(I);
            }),
            (k = []),
            Xe(function (I) {
              var N;
              (_.appendChild(I).innerHTML =
                "<a id='" +
                L +
                "' href='' disabled='disabled'></a><select id='" +
                L +
                "-\r\\' disabled='disabled'><option selected=''></option></select>"),
                I.querySelectorAll("[selected]").length ||
                  k.push("\\[" + V + "*(?:value|" + oe + ")"),
                I.querySelectorAll("[id~=" + L + "-]").length || k.push("~="),
                I.querySelectorAll("a#" + L + "+*").length ||
                  k.push(".#.+[+~]"),
                I.querySelectorAll(":checked").length || k.push(":checked"),
                (N = m.createElement("input")),
                N.setAttribute("type", "hidden"),
                I.appendChild(N).setAttribute("name", "D"),
                (_.appendChild(I).disabled = !0),
                I.querySelectorAll(":disabled").length !== 2 &&
                  k.push(":enabled", ":disabled"),
                (N = m.createElement("input")),
                N.setAttribute("name", ""),
                I.appendChild(N),
                I.querySelectorAll("[name='']").length ||
                  k.push("\\[" + V + "*name" + V + "*=" + V + `*(?:''|"")`);
            }),
            A.cssHas || k.push(":has"),
            (k = k.length && new RegExp(k.join("|"))),
            (It = function (I, N) {
              if (I === N) return (d = !0), 0;
              var U = !I.compareDocumentPosition - !N.compareDocumentPosition;
              return (
                U ||
                ((U =
                  (I.ownerDocument || I) == (N.ownerDocument || N)
                    ? I.compareDocumentPosition(N)
                    : 1),
                U & 1 || (!A.sortDetached && N.compareDocumentPosition(I) === U)
                  ? I === m || (I.ownerDocument == ot && wt.contains(ot, I))
                    ? -1
                    : N === m || (N.ownerDocument == ot && wt.contains(ot, N))
                    ? 1
                    : u
                    ? c.call(u, I) - c.call(u, N)
                    : 0
                  : U & 4
                  ? -1
                  : 1)
              );
            })),
          m
        );
      }
      (wt.matches = function (y, C) {
        return wt(y, null, null, C);
      }),
        (wt.matchesSelector = function (y, C) {
          if ((Me(y), b && !jt[C + " "] && (!k || !k.test(C))))
            try {
              var O = M.call(y, C);
              if (
                O ||
                A.disconnectedMatch ||
                (y.document && y.document.nodeType !== 11)
              )
                return O;
            } catch {
              jt(C, !0);
            }
          return wt(C, m, null, [y]).length > 0;
        }),
        (wt.contains = function (y, C) {
          return (y.ownerDocument || y) != m && Me(y), a.contains(y, C);
        }),
        (wt.attr = function (y, C) {
          (y.ownerDocument || y) != m && Me(y);
          var O = i.attrHandle[C.toLowerCase()],
            I =
              O && v.call(i.attrHandle, C.toLowerCase()) ? O(y, C, !b) : void 0;
          return I !== void 0 ? I : y.getAttribute(C);
        }),
        (wt.error = function (y) {
          throw new Error("Syntax error, unrecognized expression: " + y);
        }),
        (a.uniqueSort = function (y) {
          var C,
            O = [],
            I = 0,
            N = 0;
          if (
            ((d = !A.sortStable),
            (u = !A.sortStable && f.call(y, 0)),
            ut.call(y, It),
            d)
          ) {
            for (; (C = y[N++]); ) C === y[N] && (I = O.push(N));
            for (; I--; ) ft.call(y, O[I], 1);
          }
          return (u = null), y;
        }),
        (a.fn.uniqueSort = function () {
          return this.pushStack(a.uniqueSort(f.apply(this)));
        }),
        (i = a.expr =
          {
            cacheLength: 50,
            createPseudo: ie,
            match: le,
            attrHandle: {},
            find: {},
            relative: {
              ">": { dir: "parentNode", first: !0 },
              " ": { dir: "parentNode" },
              "+": { dir: "previousSibling", first: !0 },
              "~": { dir: "previousSibling" },
            },
            preFilter: {
              ATTR: function (y) {
                return (
                  (y[1] = y[1].replace(_e, we)),
                  (y[3] = (y[3] || y[4] || y[5] || "").replace(_e, we)),
                  y[2] === "~=" && (y[3] = " " + y[3] + " "),
                  y.slice(0, 4)
                );
              },
              CHILD: function (y) {
                return (
                  (y[1] = y[1].toLowerCase()),
                  y[1].slice(0, 3) === "nth"
                    ? (y[3] || wt.error(y[0]),
                      (y[4] = +(y[4]
                        ? y[5] + (y[6] || 1)
                        : 2 * (y[3] === "even" || y[3] === "odd"))),
                      (y[5] = +(y[7] + y[8] || y[3] === "odd")))
                    : y[3] && wt.error(y[0]),
                  y
                );
              },
              PSEUDO: function (y) {
                var C,
                  O = !y[6] && y[2];
                return le.CHILD.test(y[0])
                  ? null
                  : (y[3]
                      ? (y[2] = y[4] || y[5] || "")
                      : O &&
                        ue.test(O) &&
                        (C = ui(O, !0)) &&
                        (C = O.indexOf(")", O.length - C) - O.length) &&
                        ((y[0] = y[0].slice(0, C)), (y[2] = O.slice(0, C))),
                    y.slice(0, 3));
              },
            },
            filter: {
              TAG: function (y) {
                var C = y.replace(_e, we).toLowerCase();
                return y === "*"
                  ? function () {
                      return !0;
                    }
                  : function (O) {
                      return Z(O, C);
                    };
              },
              CLASS: function (y) {
                var C = lt[y + " "];
                return (
                  C ||
                  ((C = new RegExp("(^|" + V + ")" + y + "(" + V + "|$)")) &&
                    lt(y, function (O) {
                      return C.test(
                        (typeof O.className == "string" && O.className) ||
                          (typeof O.getAttribute < "u" &&
                            O.getAttribute("class")) ||
                          ""
                      );
                    }))
                );
              },
              ATTR: function (y, C, O) {
                return function (I) {
                  var N = wt.attr(I, y);
                  return N == null
                    ? C === "!="
                    : C
                    ? ((N += ""),
                      C === "="
                        ? N === O
                        : C === "!="
                        ? N !== O
                        : C === "^="
                        ? O && N.indexOf(O) === 0
                        : C === "*="
                        ? O && N.indexOf(O) > -1
                        : C === "$="
                        ? O && N.slice(-O.length) === O
                        : C === "~="
                        ? (" " + N.replace(St, " ") + " ").indexOf(O) > -1
                        : C === "|="
                        ? N === O || N.slice(0, O.length + 1) === O + "-"
                        : !1)
                    : !0;
                };
              },
              CHILD: function (y, C, O, I, N) {
                var U = y.slice(0, 3) !== "nth",
                  X = y.slice(-4) !== "last",
                  et = C === "of-type";
                return I === 1 && N === 0
                  ? function (G) {
                      return !!G.parentNode;
                    }
                  : function (G, gt, at) {
                      var ct,
                        mt,
                        st,
                        Ct,
                        Wt,
                        Lt = U !== X ? "nextSibling" : "previousSibling",
                        Gt = G.parentNode,
                        ce = et && G.nodeName.toLowerCase(),
                        Ge = !at && !et,
                        Bt = !1;
                      if (Gt) {
                        if (U) {
                          for (; Lt; ) {
                            for (st = G; (st = st[Lt]); )
                              if (et ? Z(st, ce) : st.nodeType === 1) return !1;
                            Wt = Lt = y === "only" && !Wt && "nextSibling";
                          }
                          return !0;
                        }
                        if (
                          ((Wt = [X ? Gt.firstChild : Gt.lastChild]), X && Ge)
                        ) {
                          for (
                            mt = Gt[L] || (Gt[L] = {}),
                              ct = mt[y] || [],
                              Ct = ct[0] === E && ct[1],
                              Bt = Ct && ct[2],
                              st = Ct && Gt.childNodes[Ct];
                            (st =
                              (++Ct && st && st[Lt]) ||
                              (Bt = Ct = 0) ||
                              Wt.pop());

                          )
                            if (st.nodeType === 1 && ++Bt && st === G) {
                              mt[y] = [E, Ct, Bt];
                              break;
                            }
                        } else if (
                          (Ge &&
                            ((mt = G[L] || (G[L] = {})),
                            (ct = mt[y] || []),
                            (Ct = ct[0] === E && ct[1]),
                            (Bt = Ct)),
                          Bt === !1)
                        )
                          for (
                            ;
                            (st =
                              (++Ct && st && st[Lt]) ||
                              (Bt = Ct = 0) ||
                              Wt.pop()) &&
                            !(
                              (et ? Z(st, ce) : st.nodeType === 1) &&
                              ++Bt &&
                              (Ge &&
                                ((mt = st[L] || (st[L] = {})),
                                (mt[y] = [E, Bt])),
                              st === G)
                            );

                          );
                        return (
                          (Bt -= N), Bt === I || (Bt % I === 0 && Bt / I >= 0)
                        );
                      }
                    };
              },
              PSEUDO: function (y, C) {
                var O,
                  I =
                    i.pseudos[y] ||
                    i.setFilters[y.toLowerCase()] ||
                    wt.error("unsupported pseudo: " + y);
                return I[L]
                  ? I(C)
                  : I.length > 1
                  ? ((O = [y, y, "", C]),
                    i.setFilters.hasOwnProperty(y.toLowerCase())
                      ? ie(function (N, U) {
                          for (var X, et = I(N, C), G = et.length; G--; )
                            (X = c.call(N, et[G])), (N[X] = !(U[X] = et[G]));
                        })
                      : function (N) {
                          return I(N, 0, O);
                        })
                  : I;
              },
            },
            pseudos: {
              not: ie(function (y) {
                var C = [],
                  O = [],
                  I = Xi(y.replace(xt, "$1"));
                return I[L]
                  ? ie(function (N, U, X, et) {
                      for (
                        var G, gt = I(N, null, et, []), at = N.length;
                        at--;

                      )
                        (G = gt[at]) && (N[at] = !(U[at] = G));
                    })
                  : function (N, U, X) {
                      return (
                        (C[0] = N), I(C, null, X, O), (C[0] = null), !O.pop()
                      );
                    };
              }),
              has: ie(function (y) {
                return function (C) {
                  return wt(y, C).length > 0;
                };
              }),
              contains: ie(function (y) {
                return (
                  (y = y.replace(_e, we)),
                  function (C) {
                    return (C.textContent || a.text(C)).indexOf(y) > -1;
                  }
                );
              }),
              lang: ie(function (y) {
                return (
                  ai.test(y || "") || wt.error("unsupported lang: " + y),
                  (y = y.replace(_e, we).toLowerCase()),
                  function (C) {
                    var O;
                    do
                      if (
                        (O = b
                          ? C.lang
                          : C.getAttribute("xml:lang") ||
                            C.getAttribute("lang"))
                      )
                        return (
                          (O = O.toLowerCase()),
                          O === y || O.indexOf(y + "-") === 0
                        );
                    while ((C = C.parentNode) && C.nodeType === 1);
                    return !1;
                  }
                );
              }),
              target: function (y) {
                var C = e.location && e.location.hash;
                return C && C.slice(1) === y.id;
              },
              root: function (y) {
                return y === _;
              },
              focus: function (y) {
                return (
                  y === Rn() &&
                  m.hasFocus() &&
                  !!(y.type || y.href || ~y.tabIndex)
                );
              },
              enabled: Pr(!1),
              disabled: Pr(!0),
              checked: function (y) {
                return (
                  (Z(y, "input") && !!y.checked) ||
                  (Z(y, "option") && !!y.selected)
                );
              },
              selected: function (y) {
                return (
                  y.parentNode && y.parentNode.selectedIndex, y.selected === !0
                );
              },
              empty: function (y) {
                for (y = y.firstChild; y; y = y.nextSibling)
                  if (y.nodeType < 6) return !1;
                return !0;
              },
              parent: function (y) {
                return !i.pseudos.empty(y);
              },
              header: function (y) {
                return Ie.test(y.nodeName);
              },
              input: function (y) {
                return De.test(y.nodeName);
              },
              button: function (y) {
                return (Z(y, "input") && y.type === "button") || Z(y, "button");
              },
              text: function (y) {
                var C;
                return (
                  Z(y, "input") &&
                  y.type === "text" &&
                  ((C = y.getAttribute("type")) == null ||
                    C.toLowerCase() === "text")
                );
              },
              first: qe(function () {
                return [0];
              }),
              last: qe(function (y, C) {
                return [C - 1];
              }),
              eq: qe(function (y, C, O) {
                return [O < 0 ? O + C : O];
              }),
              even: qe(function (y, C) {
                for (var O = 0; O < C; O += 2) y.push(O);
                return y;
              }),
              odd: qe(function (y, C) {
                for (var O = 1; O < C; O += 2) y.push(O);
                return y;
              }),
              lt: qe(function (y, C, O) {
                var I;
                for (
                  O < 0 ? (I = O + C) : O > C ? (I = C) : (I = O);
                  --I >= 0;

                )
                  y.push(I);
                return y;
              }),
              gt: qe(function (y, C, O) {
                for (var I = O < 0 ? O + C : O; ++I < C; ) y.push(I);
                return y;
              }),
            },
          }),
        (i.pseudos.nth = i.pseudos.eq);
      for (t in { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 })
        i.pseudos[t] = Bn(t);
      for (t in { submit: !0, reset: !0 }) i.pseudos[t] = $n(t);
      function Or() {}
      (Or.prototype = i.filters = i.pseudos), (i.setFilters = new Or());
      function ui(y, C) {
        var O,
          I,
          N,
          U,
          X,
          et,
          G,
          gt = bt[y + " "];
        if (gt) return C ? 0 : gt.slice(0);
        for (X = y, et = [], G = i.preFilter; X; ) {
          (!O || (I = Pt.exec(X))) &&
            (I && (X = X.slice(I[0].length) || X), et.push((N = []))),
            (O = !1),
            (I = oi.exec(X)) &&
              ((O = I.shift()),
              N.push({ value: O, type: I[0].replace(xt, " ") }),
              (X = X.slice(O.length)));
          for (U in i.filter)
            (I = le[U].exec(X)) &&
              (!G[U] || (I = G[U](I))) &&
              ((O = I.shift()),
              N.push({ value: O, type: U, matches: I }),
              (X = X.slice(O.length)));
          if (!O) break;
        }
        return C ? X.length : X ? wt.error(y) : bt(y, et).slice(0);
      }
      function _i(y) {
        for (var C = 0, O = y.length, I = ""; C < O; C++) I += y[C].value;
        return I;
      }
      function wi(y, C, O) {
        var I = C.dir,
          N = C.next,
          U = N || I,
          X = O && U === "parentNode",
          et = z++;
        return C.first
          ? function (G, gt, at) {
              for (; (G = G[I]); )
                if (G.nodeType === 1 || X) return y(G, gt, at);
              return !1;
            }
          : function (G, gt, at) {
              var ct,
                mt,
                st = [E, et];
              if (at) {
                for (; (G = G[I]); )
                  if ((G.nodeType === 1 || X) && y(G, gt, at)) return !0;
              } else
                for (; (G = G[I]); )
                  if (G.nodeType === 1 || X)
                    if (((mt = G[L] || (G[L] = {})), N && Z(G, N)))
                      G = G[I] || G;
                    else {
                      if ((ct = mt[U]) && ct[0] === E && ct[1] === et)
                        return (st[2] = ct[2]);
                      if (((mt[U] = st), (st[2] = y(G, gt, at)))) return !0;
                    }
              return !1;
            };
      }
      function Ui(y) {
        return y.length > 1
          ? function (C, O, I) {
              for (var N = y.length; N--; ) if (!y[N](C, O, I)) return !1;
              return !0;
            }
          : y[0];
      }
      function Fn(y, C, O) {
        for (var I = 0, N = C.length; I < N; I++) wt(y, C[I], O);
        return O;
      }
      function Ai(y, C, O, I, N) {
        for (var U, X = [], et = 0, G = y.length, gt = C != null; et < G; et++)
          (U = y[et]) && (!O || O(U, I, N)) && (X.push(U), gt && C.push(et));
        return X;
      }
      function Ki(y, C, O, I, N, U) {
        return (
          I && !I[L] && (I = Ki(I)),
          N && !N[L] && (N = Ki(N, U)),
          ie(function (X, et, G, gt) {
            var at,
              ct,
              mt,
              st,
              Ct = [],
              Wt = [],
              Lt = et.length,
              Gt = X || Fn(C || "*", G.nodeType ? [G] : G, []),
              ce = y && (X || !C) ? Ai(Gt, Ct, y, G, gt) : Gt;
            if (
              (O
                ? ((st = N || (X ? y : Lt || I) ? [] : et), O(ce, st, G, gt))
                : (st = ce),
              I)
            )
              for (at = Ai(st, Wt), I(at, [], G, gt), ct = at.length; ct--; )
                (mt = at[ct]) && (st[Wt[ct]] = !(ce[Wt[ct]] = mt));
            if (X) {
              if (N || y) {
                if (N) {
                  for (at = [], ct = st.length; ct--; )
                    (mt = st[ct]) && at.push((ce[ct] = mt));
                  N(null, (st = []), at, gt);
                }
                for (ct = st.length; ct--; )
                  (mt = st[ct]) &&
                    (at = N ? c.call(X, mt) : Ct[ct]) > -1 &&
                    (X[at] = !(et[at] = mt));
              }
            } else (st = Ai(st === et ? st.splice(Lt, st.length) : st)), N ? N(null, et, st, gt) : h.apply(et, st);
          })
        );
      }
      function Yi(y) {
        for (
          var C,
            O,
            I,
            N = y.length,
            U = i.relative[y[0].type],
            X = U || i.relative[" "],
            et = U ? 1 : 0,
            G = wi(
              function (ct) {
                return ct === C;
              },
              X,
              !0
            ),
            gt = wi(
              function (ct) {
                return c.call(C, ct) > -1;
              },
              X,
              !0
            ),
            at = [
              function (ct, mt, st) {
                var Ct =
                  (!U && (st || mt != o)) ||
                  ((C = mt).nodeType ? G(ct, mt, st) : gt(ct, mt, st));
                return (C = null), Ct;
              },
            ];
          et < N;
          et++
        )
          if ((O = i.relative[y[et].type])) at = [wi(Ui(at), O)];
          else {
            if (((O = i.filter[y[et].type].apply(null, y[et].matches)), O[L])) {
              for (I = ++et; I < N && !i.relative[y[I].type]; I++);
              return Ki(
                et > 1 && Ui(at),
                et > 1 &&
                  _i(
                    y
                      .slice(0, et - 1)
                      .concat({ value: y[et - 2].type === " " ? "*" : "" })
                  ).replace(xt, "$1"),
                O,
                et < I && Yi(y.slice(et, I)),
                I < N && Yi((y = y.slice(I))),
                I < N && _i(y)
              );
            }
            at.push(O);
          }
        return Ui(at);
      }
      function zn(y, C) {
        var O = C.length > 0,
          I = y.length > 0,
          N = function (U, X, et, G, gt) {
            var at,
              ct,
              mt,
              st = 0,
              Ct = "0",
              Wt = U && [],
              Lt = [],
              Gt = o,
              ce = U || (I && i.find.TAG("*", gt)),
              Ge = (E += Gt == null ? 1 : Math.random() || 0.1),
              Bt = ce.length;
            for (
              gt && (o = X == m || X || gt);
              Ct !== Bt && (at = ce[Ct]) != null;
              Ct++
            ) {
              if (I && at) {
                for (
                  ct = 0, !X && at.ownerDocument != m && (Me(at), (et = !b));
                  (mt = y[ct++]);

                )
                  if (mt(at, X || m, et)) {
                    h.call(G, at);
                    break;
                  }
                gt && (E = Ge);
              }
              O && ((at = !mt && at) && st--, U && Wt.push(at));
            }
            if (((st += Ct), O && Ct !== st)) {
              for (ct = 0; (mt = C[ct++]); ) mt(Wt, Lt, X, et);
              if (U) {
                if (st > 0)
                  for (; Ct--; ) Wt[Ct] || Lt[Ct] || (Lt[Ct] = pt.call(G));
                Lt = Ai(Lt);
              }
              h.apply(G, Lt),
                gt &&
                  !U &&
                  Lt.length > 0 &&
                  st + C.length > 1 &&
                  a.uniqueSort(G);
            }
            return gt && ((E = Ge), (o = Gt)), Wt;
          };
        return O ? ie(N) : N;
      }
      function Xi(y, C) {
        var O,
          I = [],
          N = [],
          U = ht[y + " "];
        if (!U) {
          for (C || (C = ui(y)), O = C.length; O--; )
            (U = Yi(C[O])), U[L] ? I.push(U) : N.push(U);
          (U = ht(y, zn(N, I))), (U.selector = y);
        }
        return U;
      }
      function Er(y, C, O, I) {
        var N,
          U,
          X,
          et,
          G,
          gt = typeof y == "function" && y,
          at = !I && ui((y = gt.selector || y));
        if (((O = O || []), at.length === 1)) {
          if (
            ((U = at[0] = at[0].slice(0)),
            U.length > 2 &&
              (X = U[0]).type === "ID" &&
              C.nodeType === 9 &&
              b &&
              i.relative[U[1].type])
          ) {
            if (
              ((C = (i.find.ID(X.matches[0].replace(_e, we), C) || [])[0]), C)
            )
              gt && (C = C.parentNode);
            else return O;
            y = y.slice(U.shift().value.length);
          }
          for (
            N = le.needsContext.test(y) ? 0 : U.length;
            N-- && ((X = U[N]), !i.relative[(et = X.type)]);

          )
            if (
              (G = i.find[et]) &&
              (I = G(
                X.matches[0].replace(_e, we),
                (Vi.test(U[0].type) && Wi(C.parentNode)) || C
              ))
            ) {
              if ((U.splice(N, 1), (y = I.length && _i(U)), !y))
                return h.apply(O, I), O;
              break;
            }
        }
        return (
          (gt || Xi(y, at))(
            I,
            C,
            !b,
            O,
            !C || (Vi.test(y) && Wi(C.parentNode)) || C
          ),
          O
        );
      }
      (A.sortStable = L.split("").sort(It).join("") === L),
        Me(),
        (A.sortDetached = Xe(function (y) {
          return y.compareDocumentPosition(m.createElement("fieldset")) & 1;
        })),
        (a.find = wt),
        (a.expr[":"] = a.expr.pseudos),
        (a.unique = a.uniqueSort),
        (wt.compile = Xi),
        (wt.select = Er),
        (wt.setDocument = Me),
        (wt.tokenize = ui),
        (wt.escape = a.escapeSelector),
        (wt.getText = a.text),
        (wt.isXML = a.isXMLDoc),
        (wt.selectors = a.expr),
        (wt.support = a.support),
        (wt.uniqueSort = a.uniqueSort);
    })();
    var H = function (t, i, o) {
        for (var u = [], d = o !== void 0; (t = t[i]) && t.nodeType !== 9; )
          if (t.nodeType === 1) {
            if (d && a(t).is(o)) break;
            u.push(t);
          }
        return u;
      },
      B = function (t, i) {
        for (var o = []; t; t = t.nextSibling)
          t.nodeType === 1 && t !== i && o.push(t);
        return o;
      },
      q = a.expr.match.needsContext,
      nt = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
    function J(t, i, o) {
      return P(i)
        ? a.grep(t, function (u, d) {
            return !!i.call(u, d, u) !== o;
          })
        : i.nodeType
        ? a.grep(t, function (u) {
            return (u === i) !== o;
          })
        : typeof i != "string"
        ? a.grep(t, function (u) {
            return c.call(i, u) > -1 !== o;
          })
        : a.filter(i, t, o);
    }
    (a.filter = function (t, i, o) {
      var u = i[0];
      return (
        o && (t = ":not(" + t + ")"),
        i.length === 1 && u.nodeType === 1
          ? a.find.matchesSelector(u, t)
            ? [u]
            : []
          : a.find.matches(
              t,
              a.grep(i, function (d) {
                return d.nodeType === 1;
              })
            )
      );
    }),
      a.fn.extend({
        find: function (t) {
          var i,
            o,
            u = this.length,
            d = this;
          if (typeof t != "string")
            return this.pushStack(
              a(t).filter(function () {
                for (i = 0; i < u; i++) if (a.contains(d[i], this)) return !0;
              })
            );
          for (o = this.pushStack([]), i = 0; i < u; i++) a.find(t, d[i], o);
          return u > 1 ? a.uniqueSort(o) : o;
        },
        filter: function (t) {
          return this.pushStack(J(this, t || [], !1));
        },
        not: function (t) {
          return this.pushStack(J(this, t || [], !0));
        },
        is: function (t) {
          return !!J(
            this,
            typeof t == "string" && q.test(t) ? a(t) : t || [],
            !1
          ).length;
        },
      });
    var Q,
      yt = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
      Nt = (a.fn.init = function (t, i, o) {
        var u, d;
        if (!t) return this;
        if (((o = o || Q), typeof t == "string"))
          if (
            (t[0] === "<" && t[t.length - 1] === ">" && t.length >= 3
              ? (u = [null, t, null])
              : (u = yt.exec(t)),
            u && (u[1] || !i))
          )
            if (u[1]) {
              if (
                ((i = i instanceof a ? i[0] : i),
                a.merge(
                  this,
                  a.parseHTML(
                    u[1],
                    i && i.nodeType ? i.ownerDocument || i : D,
                    !0
                  )
                ),
                nt.test(u[1]) && a.isPlainObject(i))
              )
                for (u in i) P(this[u]) ? this[u](i[u]) : this.attr(u, i[u]);
              return this;
            } else
              return (
                (d = D.getElementById(u[2])),
                d && ((this[0] = d), (this.length = 1)),
                this
              );
          else
            return !i || i.jquery
              ? (i || o).find(t)
              : this.constructor(i).find(t);
        else {
          if (t.nodeType) return (this[0] = t), (this.length = 1), this;
          if (P(t)) return o.ready !== void 0 ? o.ready(t) : t(a);
        }
        return a.makeArray(t, this);
      });
    (Nt.prototype = a.fn), (Q = a(D));
    var Kt = /^(?:parents|prev(?:Until|All))/,
      hi = { children: !0, contents: !0, next: !0, prev: !0 };
    a.fn.extend({
      has: function (t) {
        var i = a(t, this),
          o = i.length;
        return this.filter(function () {
          for (var u = 0; u < o; u++) if (a.contains(this, i[u])) return !0;
        });
      },
      closest: function (t, i) {
        var o,
          u = 0,
          d = this.length,
          h = [],
          m = typeof t != "string" && a(t);
        if (!q.test(t)) {
          for (; u < d; u++)
            for (o = this[u]; o && o !== i; o = o.parentNode)
              if (
                o.nodeType < 11 &&
                (m
                  ? m.index(o) > -1
                  : o.nodeType === 1 && a.find.matchesSelector(o, t))
              ) {
                h.push(o);
                break;
              }
        }
        return this.pushStack(h.length > 1 ? a.uniqueSort(h) : h);
      },
      index: function (t) {
        return t
          ? typeof t == "string"
            ? c.call(a(t), this[0])
            : c.call(this, t.jquery ? t[0] : t)
          : this[0] && this[0].parentNode
          ? this.first().prevAll().length
          : -1;
      },
      add: function (t, i) {
        return this.pushStack(a.uniqueSort(a.merge(this.get(), a(t, i))));
      },
      addBack: function (t) {
        return this.add(
          t == null ? this.prevObject : this.prevObject.filter(t)
        );
      },
    });
    function re(t, i) {
      for (; (t = t[i]) && t.nodeType !== 1; );
      return t;
    }
    a.each(
      {
        parent: function (t) {
          var i = t.parentNode;
          return i && i.nodeType !== 11 ? i : null;
        },
        parents: function (t) {
          return H(t, "parentNode");
        },
        parentsUntil: function (t, i, o) {
          return H(t, "parentNode", o);
        },
        next: function (t) {
          return re(t, "nextSibling");
        },
        prev: function (t) {
          return re(t, "previousSibling");
        },
        nextAll: function (t) {
          return H(t, "nextSibling");
        },
        prevAll: function (t) {
          return H(t, "previousSibling");
        },
        nextUntil: function (t, i, o) {
          return H(t, "nextSibling", o);
        },
        prevUntil: function (t, i, o) {
          return H(t, "previousSibling", o);
        },
        siblings: function (t) {
          return B((t.parentNode || {}).firstChild, t);
        },
        children: function (t) {
          return B(t.firstChild);
        },
        contents: function (t) {
          return t.contentDocument != null && r(t.contentDocument)
            ? t.contentDocument
            : (Z(t, "template") && (t = t.content || t),
              a.merge([], t.childNodes));
        },
      },
      function (t, i) {
        a.fn[t] = function (o, u) {
          var d = a.map(this, i, o);
          return (
            t.slice(-5) !== "Until" && (u = o),
            u && typeof u == "string" && (d = a.filter(u, d)),
            this.length > 1 &&
              (hi[t] || a.uniqueSort(d), Kt.test(t) && d.reverse()),
            this.pushStack(d)
          );
        };
      }
    );
    var Ot = /[^\x20\t\r\n\f]+/g;
    function Jt(t) {
      var i = {};
      return (
        a.each(t.match(Ot) || [], function (o, u) {
          i[u] = !0;
        }),
        i
      );
    }
    a.Callbacks = function (t) {
      t = typeof t == "string" ? Jt(t) : a.extend({}, t);
      var i,
        o,
        u,
        d,
        h = [],
        m = [],
        _ = -1,
        b = function () {
          for (d = d || t.once, u = i = !0; m.length; _ = -1)
            for (o = m.shift(); ++_ < h.length; )
              h[_].apply(o[0], o[1]) === !1 &&
                t.stopOnFalse &&
                ((_ = h.length), (o = !1));
          t.memory || (o = !1), (i = !1), d && (o ? (h = []) : (h = ""));
        },
        k = {
          add: function () {
            return (
              h &&
                (o && !i && ((_ = h.length - 1), m.push(o)),
                (function M(L) {
                  a.each(L, function (E, z) {
                    P(z)
                      ? (!t.unique || !k.has(z)) && h.push(z)
                      : z && z.length && W(z) !== "string" && M(z);
                  });
                })(arguments),
                o && !i && b()),
              this
            );
          },
          remove: function () {
            return (
              a.each(arguments, function (M, L) {
                for (var E; (E = a.inArray(L, h, E)) > -1; )
                  h.splice(E, 1), E <= _ && _--;
              }),
              this
            );
          },
          has: function (M) {
            return M ? a.inArray(M, h) > -1 : h.length > 0;
          },
          empty: function () {
            return h && (h = []), this;
          },
          disable: function () {
            return (d = m = []), (h = o = ""), this;
          },
          disabled: function () {
            return !h;
          },
          lock: function () {
            return (d = m = []), !o && !i && (h = o = ""), this;
          },
          locked: function () {
            return !!d;
          },
          fireWith: function (M, L) {
            return (
              d ||
                ((L = L || []),
                (L = [M, L.slice ? L.slice() : L]),
                m.push(L),
                i || b()),
              this
            );
          },
          fire: function () {
            return k.fireWith(this, arguments), this;
          },
          fired: function () {
            return !!u;
          },
        };
      return k;
    };
    function $t(t) {
      return t;
    }
    function Te(t) {
      throw t;
    }
    function pe(t, i, o, u) {
      var d;
      try {
        t && P((d = t.promise))
          ? d.call(t).done(i).fail(o)
          : t && P((d = t.then))
          ? d.call(t, i, o)
          : i.apply(void 0, [t].slice(u));
      } catch (h) {
        o.apply(void 0, [h]);
      }
    }
    a.extend({
      Deferred: function (t) {
        var i = [
            [
              "notify",
              "progress",
              a.Callbacks("memory"),
              a.Callbacks("memory"),
              2,
            ],
            [
              "resolve",
              "done",
              a.Callbacks("once memory"),
              a.Callbacks("once memory"),
              0,
              "resolved",
            ],
            [
              "reject",
              "fail",
              a.Callbacks("once memory"),
              a.Callbacks("once memory"),
              1,
              "rejected",
            ],
          ],
          o = "pending",
          u = {
            state: function () {
              return o;
            },
            always: function () {
              return d.done(arguments).fail(arguments), this;
            },
            catch: function (h) {
              return u.then(null, h);
            },
            pipe: function () {
              var h = arguments;
              return a
                .Deferred(function (m) {
                  a.each(i, function (_, b) {
                    var k = P(h[b[4]]) && h[b[4]];
                    d[b[1]](function () {
                      var M = k && k.apply(this, arguments);
                      M && P(M.promise)
                        ? M.promise()
                            .progress(m.notify)
                            .done(m.resolve)
                            .fail(m.reject)
                        : m[b[0] + "With"](this, k ? [M] : arguments);
                    });
                  }),
                    (h = null);
                })
                .promise();
            },
            then: function (h, m, _) {
              var b = 0;
              function k(M, L, E, z) {
                return function () {
                  var lt = this,
                    bt = arguments,
                    ht = function () {
                      var It, oe;
                      if (!(M < b)) {
                        if (((It = E.apply(lt, bt)), It === L.promise()))
                          throw new TypeError("Thenable self-resolution");
                        (oe =
                          It &&
                          (typeof It == "object" || typeof It == "function") &&
                          It.then),
                          P(oe)
                            ? z
                              ? oe.call(It, k(b, L, $t, z), k(b, L, Te, z))
                              : (b++,
                                oe.call(
                                  It,
                                  k(b, L, $t, z),
                                  k(b, L, Te, z),
                                  k(b, L, $t, L.notifyWith)
                                ))
                            : (E !== $t && ((lt = void 0), (bt = [It])),
                              (z || L.resolveWith)(lt, bt));
                      }
                    },
                    jt = z
                      ? ht
                      : function () {
                          try {
                            ht();
                          } catch (It) {
                            a.Deferred.exceptionHook &&
                              a.Deferred.exceptionHook(It, jt.error),
                              M + 1 >= b &&
                                (E !== Te && ((lt = void 0), (bt = [It])),
                                L.rejectWith(lt, bt));
                          }
                        };
                  M
                    ? jt()
                    : (a.Deferred.getErrorHook
                        ? (jt.error = a.Deferred.getErrorHook())
                        : a.Deferred.getStackHook &&
                          (jt.error = a.Deferred.getStackHook()),
                      e.setTimeout(jt));
                };
              }
              return a
                .Deferred(function (M) {
                  i[0][3].add(k(0, M, P(_) ? _ : $t, M.notifyWith)),
                    i[1][3].add(k(0, M, P(h) ? h : $t)),
                    i[2][3].add(k(0, M, P(m) ? m : Te));
                })
                .promise();
            },
            promise: function (h) {
              return h != null ? a.extend(h, u) : u;
            },
          },
          d = {};
        return (
          a.each(i, function (h, m) {
            var _ = m[2],
              b = m[5];
            (u[m[1]] = _.add),
              b &&
                _.add(
                  function () {
                    o = b;
                  },
                  i[3 - h][2].disable,
                  i[3 - h][3].disable,
                  i[0][2].lock,
                  i[0][3].lock
                ),
              _.add(m[3].fire),
              (d[m[0]] = function () {
                return (
                  d[m[0] + "With"](this === d ? void 0 : this, arguments), this
                );
              }),
              (d[m[0] + "With"] = _.fireWith);
          }),
          u.promise(d),
          t && t.call(d, d),
          d
        );
      },
      when: function (t) {
        var i = arguments.length,
          o = i,
          u = Array(o),
          d = f.call(arguments),
          h = a.Deferred(),
          m = function (_) {
            return function (b) {
              (u[_] = this),
                (d[_] = arguments.length > 1 ? f.call(arguments) : b),
                --i || h.resolveWith(u, d);
            };
          };
        if (
          i <= 1 &&
          (pe(t, h.done(m(o)).resolve, h.reject, !i),
          h.state() === "pending" || P(d[o] && d[o].then))
        )
          return h.then();
        for (; o--; ) pe(d[o], m(o), h.reject);
        return h.promise();
      },
    });
    var ke = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
    (a.Deferred.exceptionHook = function (t, i) {
      e.console &&
        e.console.warn &&
        t &&
        ke.test(t.name) &&
        e.console.warn("jQuery.Deferred exception: " + t.message, t.stack, i);
    }),
      (a.readyException = function (t) {
        e.setTimeout(function () {
          throw t;
        });
      });
    var Yt = a.Deferred();
    (a.fn.ready = function (t) {
      return (
        Yt.then(t).catch(function (i) {
          a.readyException(i);
        }),
        this
      );
    }),
      a.extend({
        isReady: !1,
        readyWait: 1,
        ready: function (t) {
          (t === !0 ? --a.readyWait : a.isReady) ||
            ((a.isReady = !0),
            !(t !== !0 && --a.readyWait > 0) && Yt.resolveWith(D, [a]));
        },
      }),
      (a.ready.then = Yt.then);
    function Ut() {
      D.removeEventListener("DOMContentLoaded", Ut),
        e.removeEventListener("load", Ut),
        a.ready();
    }
    D.readyState === "complete" ||
    (D.readyState !== "loading" && !D.documentElement.doScroll)
      ? e.setTimeout(a.ready)
      : (D.addEventListener("DOMContentLoaded", Ut),
        e.addEventListener("load", Ut));
    var Rt = function (t, i, o, u, d, h, m) {
        var _ = 0,
          b = t.length,
          k = o == null;
        if (W(o) === "object") {
          d = !0;
          for (_ in o) Rt(t, i, _, o[_], !0, h, m);
        } else if (
          u !== void 0 &&
          ((d = !0),
          P(u) || (m = !0),
          k &&
            (m
              ? (i.call(t, u), (i = null))
              : ((k = i),
                (i = function (M, L, E) {
                  return k.call(a(M), E);
                }))),
          i)
        )
          for (; _ < b; _++) i(t[_], o, m ? u : u.call(t[_], _, i(t[_], o)));
        return d ? t : k ? i.call(t) : b ? i(t[0], o) : h;
      },
      Le = /^-ms-/,
      Ft = /-([a-z])/g;
    function Qe(t, i) {
      return i.toUpperCase();
    }
    function Mt(t) {
      return t.replace(Le, "ms-").replace(Ft, Qe);
    }
    var ne = function (t) {
      return t.nodeType === 1 || t.nodeType === 9 || !+t.nodeType;
    };
    function ge() {
      this.expando = a.expando + ge.uid++;
    }
    (ge.uid = 1),
      (ge.prototype = {
        cache: function (t) {
          var i = t[this.expando];
          return (
            i ||
              ((i = {}),
              ne(t) &&
                (t.nodeType
                  ? (t[this.expando] = i)
                  : Object.defineProperty(t, this.expando, {
                      value: i,
                      configurable: !0,
                    }))),
            i
          );
        },
        set: function (t, i, o) {
          var u,
            d = this.cache(t);
          if (typeof i == "string") d[Mt(i)] = o;
          else for (u in i) d[Mt(u)] = i[u];
          return d;
        },
        get: function (t, i) {
          return i === void 0
            ? this.cache(t)
            : t[this.expando] && t[this.expando][Mt(i)];
        },
        access: function (t, i, o) {
          return i === void 0 || (i && typeof i == "string" && o === void 0)
            ? this.get(t, i)
            : (this.set(t, i, o), o !== void 0 ? o : i);
        },
        remove: function (t, i) {
          var o,
            u = t[this.expando];
          if (u !== void 0) {
            if (i !== void 0)
              for (
                Array.isArray(i)
                  ? (i = i.map(Mt))
                  : ((i = Mt(i)), (i = (i in u) ? [i] : i.match(Ot) || [])),
                  o = i.length;
                o--;

              )
                delete u[i[o]];
            (i === void 0 || a.isEmptyObject(u)) &&
              (t.nodeType
                ? (t[this.expando] = void 0)
                : delete t[this.expando]);
          }
        },
        hasData: function (t) {
          var i = t[this.expando];
          return i !== void 0 && !a.isEmptyObject(i);
        },
      });
    var tt = new ge(),
      Dt = new ge(),
      Ue = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
      He = /[A-Z]/g;
    function Je(t) {
      return t === "true"
        ? !0
        : t === "false"
        ? !1
        : t === "null"
        ? null
        : t === +t + ""
        ? +t
        : Ue.test(t)
        ? JSON.parse(t)
        : t;
    }
    function Re(t, i, o) {
      var u;
      if (o === void 0 && t.nodeType === 1)
        if (
          ((u = "data-" + i.replace(He, "-$&").toLowerCase()),
          (o = t.getAttribute(u)),
          typeof o == "string")
        ) {
          try {
            o = Je(o);
          } catch {}
          Dt.set(t, i, o);
        } else o = void 0;
      return o;
    }
    a.extend({
      hasData: function (t) {
        return Dt.hasData(t) || tt.hasData(t);
      },
      data: function (t, i, o) {
        return Dt.access(t, i, o);
      },
      removeData: function (t, i) {
        Dt.remove(t, i);
      },
      _data: function (t, i, o) {
        return tt.access(t, i, o);
      },
      _removeData: function (t, i) {
        tt.remove(t, i);
      },
    }),
      a.fn.extend({
        data: function (t, i) {
          var o,
            u,
            d,
            h = this[0],
            m = h && h.attributes;
          if (t === void 0) {
            if (
              this.length &&
              ((d = Dt.get(h)), h.nodeType === 1 && !tt.get(h, "hasDataAttrs"))
            ) {
              for (o = m.length; o--; )
                m[o] &&
                  ((u = m[o].name),
                  u.indexOf("data-") === 0 &&
                    ((u = Mt(u.slice(5))), Re(h, u, d[u])));
              tt.set(h, "hasDataAttrs", !0);
            }
            return d;
          }
          return typeof t == "object"
            ? this.each(function () {
                Dt.set(this, t);
              })
            : Rt(
                this,
                function (_) {
                  var b;
                  if (h && _ === void 0)
                    return (
                      (b = Dt.get(h, t)),
                      b !== void 0 || ((b = Re(h, t)), b !== void 0)
                        ? b
                        : void 0
                    );
                  this.each(function () {
                    Dt.set(this, t, _);
                  });
                },
                null,
                i,
                arguments.length > 1,
                null,
                !0
              );
        },
        removeData: function (t) {
          return this.each(function () {
            Dt.remove(this, t);
          });
        },
      }),
      a.extend({
        queue: function (t, i, o) {
          var u;
          if (t)
            return (
              (i = (i || "fx") + "queue"),
              (u = tt.get(t, i)),
              o &&
                (!u || Array.isArray(o)
                  ? (u = tt.access(t, i, a.makeArray(o)))
                  : u.push(o)),
              u || []
            );
        },
        dequeue: function (t, i) {
          i = i || "fx";
          var o = a.queue(t, i),
            u = o.length,
            d = o.shift(),
            h = a._queueHooks(t, i),
            m = function () {
              a.dequeue(t, i);
            };
          d === "inprogress" && ((d = o.shift()), u--),
            d &&
              (i === "fx" && o.unshift("inprogress"),
              delete h.stop,
              d.call(t, m, h)),
            !u && h && h.empty.fire();
        },
        _queueHooks: function (t, i) {
          var o = i + "queueHooks";
          return (
            tt.get(t, o) ||
            tt.access(t, o, {
              empty: a.Callbacks("once memory").add(function () {
                tt.remove(t, [i + "queue", o]);
              }),
            })
          );
        },
      }),
      a.fn.extend({
        queue: function (t, i) {
          var o = 2;
          return (
            typeof t != "string" && ((i = t), (t = "fx"), o--),
            arguments.length < o
              ? a.queue(this[0], t)
              : i === void 0
              ? this
              : this.each(function () {
                  var u = a.queue(this, t, i);
                  a._queueHooks(this, t),
                    t === "fx" && u[0] !== "inprogress" && a.dequeue(this, t);
                })
          );
        },
        dequeue: function (t) {
          return this.each(function () {
            a.dequeue(this, t);
          });
        },
        clearQueue: function (t) {
          return this.queue(t || "fx", []);
        },
        promise: function (t, i) {
          var o,
            u = 1,
            d = a.Deferred(),
            h = this,
            m = this.length,
            _ = function () {
              --u || d.resolveWith(h, [h]);
            };
          for (
            typeof t != "string" && ((i = t), (t = void 0)), t = t || "fx";
            m--;

          )
            (o = tt.get(h[m], t + "queueHooks")),
              o && o.empty && (u++, o.empty.add(_));
          return _(), d.promise(i);
        },
      });
    var Be = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
      me = new RegExp("^(?:([+-])=|)(" + Be + ")([a-z%]*)$", "i"),
      te = ["Top", "Right", "Bottom", "Left"],
      se = D.documentElement,
      zt = function (t) {
        return a.contains(t.ownerDocument, t);
      },
      pi = { composed: !0 };
    se.getRootNode &&
      (zt = function (t) {
        return (
          a.contains(t.ownerDocument, t) ||
          t.getRootNode(pi) === t.ownerDocument
        );
      });
    var Pe = function (t, i) {
      return (
        (t = i || t),
        t.style.display === "none" ||
          (t.style.display === "" && zt(t) && a.css(t, "display") === "none")
      );
    };
    function ti(t, i, o, u) {
      var d,
        h,
        m = 20,
        _ = u
          ? function () {
              return u.cur();
            }
          : function () {
              return a.css(t, i, "");
            },
        b = _(),
        k = (o && o[3]) || (a.cssNumber[i] ? "" : "px"),
        M =
          t.nodeType &&
          (a.cssNumber[i] || (k !== "px" && +b)) &&
          me.exec(a.css(t, i));
      if (M && M[3] !== k) {
        for (b = b / 2, k = k || M[3], M = +b || 1; m--; )
          a.style(t, i, M + k),
            (1 - h) * (1 - (h = _() / b || 0.5)) <= 0 && (m = 0),
            (M = M / h);
        (M = M * 2), a.style(t, i, M + k), (o = o || []);
      }
      return (
        o &&
          ((M = +M || +b || 0),
          (d = o[1] ? M + (o[1] + 1) * o[2] : +o[2]),
          u && ((u.unit = k), (u.start = M), (u.end = d))),
        d
      );
    }
    var ei = {};
    function gi(t) {
      var i,
        o = t.ownerDocument,
        u = t.nodeName,
        d = ei[u];
      return (
        d ||
        ((i = o.body.appendChild(o.createElement(u))),
        (d = a.css(i, "display")),
        i.parentNode.removeChild(i),
        d === "none" && (d = "block"),
        (ei[u] = d),
        d)
      );
    }
    function ve(t, i) {
      for (var o, u, d = [], h = 0, m = t.length; h < m; h++)
        (u = t[h]),
          u.style &&
            ((o = u.style.display),
            i
              ? (o === "none" &&
                  ((d[h] = tt.get(u, "display") || null),
                  d[h] || (u.style.display = "")),
                u.style.display === "" && Pe(u) && (d[h] = gi(u)))
              : o !== "none" && ((d[h] = "none"), tt.set(u, "display", o)));
      for (h = 0; h < m; h++) d[h] != null && (t[h].style.display = d[h]);
      return t;
    }
    a.fn.extend({
      show: function () {
        return ve(this, !0);
      },
      hide: function () {
        return ve(this);
      },
      toggle: function (t) {
        return typeof t == "boolean"
          ? t
            ? this.show()
            : this.hide()
          : this.each(function () {
              Pe(this) ? a(this).show() : a(this).hide();
            });
      },
    });
    var Oe = /^(?:checkbox|radio)$/i,
      ye = /<([a-z][^\/\0>\x20\t\r\n\f]*)/i,
      mi = /^$|^module$|\/(?:java|ecma)script/i;
    (function () {
      var t = D.createDocumentFragment(),
        i = t.appendChild(D.createElement("div")),
        o = D.createElement("input");
      o.setAttribute("type", "radio"),
        o.setAttribute("checked", "checked"),
        o.setAttribute("name", "t"),
        i.appendChild(o),
        (A.checkClone = i.cloneNode(!0).cloneNode(!0).lastChild.checked),
        (i.innerHTML = "<textarea>x</textarea>"),
        (A.noCloneChecked = !!i.cloneNode(!0).lastChild.defaultValue),
        (i.innerHTML = "<option></option>"),
        (A.option = !!i.lastChild);
    })();
    var qt = {
      thead: [1, "<table>", "</table>"],
      col: [2, "<table><colgroup>", "</colgroup></table>"],
      tr: [2, "<table><tbody>", "</tbody></table>"],
      td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
      _default: [0, "", ""],
    };
    (qt.tbody = qt.tfoot = qt.colgroup = qt.caption = qt.thead),
      (qt.th = qt.td),
      A.option ||
        (qt.optgroup = qt.option =
          [1, "<select multiple='multiple'>", "</select>"]);
    function $(t, i) {
      var o;
      return (
        typeof t.getElementsByTagName < "u"
          ? (o = t.getElementsByTagName(i || "*"))
          : typeof t.querySelectorAll < "u"
          ? (o = t.querySelectorAll(i || "*"))
          : (o = []),
        i === void 0 || (i && Z(t, i)) ? a.merge([t], o) : o
      );
    }
    function dt(t, i) {
      for (var o = 0, u = t.length; o < u; o++)
        tt.set(t[o], "globalEval", !i || tt.get(i[o], "globalEval"));
    }
    var _t = /<|&#?\w+;/;
    function be(t, i, o, u, d) {
      for (
        var h,
          m,
          _,
          b,
          k,
          M,
          L = i.createDocumentFragment(),
          E = [],
          z = 0,
          lt = t.length;
        z < lt;
        z++
      )
        if (((h = t[z]), h || h === 0))
          if (W(h) === "object") a.merge(E, h.nodeType ? [h] : h);
          else if (!_t.test(h)) E.push(i.createTextNode(h));
          else {
            for (
              m = m || L.appendChild(i.createElement("div")),
                _ = (ye.exec(h) || ["", ""])[1].toLowerCase(),
                b = qt[_] || qt._default,
                m.innerHTML = b[1] + a.htmlPrefilter(h) + b[2],
                M = b[0];
              M--;

            )
              m = m.lastChild;
            a.merge(E, m.childNodes), (m = L.firstChild), (m.textContent = "");
          }
      for (L.textContent = "", z = 0; (h = E[z++]); ) {
        if (u && a.inArray(h, u) > -1) {
          d && d.push(h);
          continue;
        }
        if (((k = zt(h)), (m = $(L.appendChild(h), "script")), k && dt(m), o))
          for (M = 0; (h = m[M++]); ) mi.test(h.type || "") && o.push(h);
      }
      return L;
    }
    var Ee = /^([^.]*)(?:\.(.+)|)/;
    function xe() {
      return !0;
    }
    function Se() {
      return !1;
    }
    function Ei(t, i, o, u, d, h) {
      var m, _;
      if (typeof i == "object") {
        typeof o != "string" && ((u = u || o), (o = void 0));
        for (_ in i) Ei(t, _, o, u, i[_], h);
        return t;
      }
      if (
        (u == null && d == null
          ? ((d = o), (u = o = void 0))
          : d == null &&
            (typeof o == "string"
              ? ((d = u), (u = void 0))
              : ((d = u), (u = o), (o = void 0))),
        d === !1)
      )
        d = Se;
      else if (!d) return t;
      return (
        h === 1 &&
          ((m = d),
          (d = function (b) {
            return a().off(b), m.apply(this, arguments);
          }),
          (d.guid = m.guid || (m.guid = a.guid++))),
        t.each(function () {
          a.event.add(this, i, d, u, o);
        })
      );
    }
    a.event = {
      global: {},
      add: function (t, i, o, u, d) {
        var h,
          m,
          _,
          b,
          k,
          M,
          L,
          E,
          z,
          lt,
          bt,
          ht = tt.get(t);
        if (ne(t))
          for (
            o.handler && ((h = o), (o = h.handler), (d = h.selector)),
              d && a.find.matchesSelector(se, d),
              o.guid || (o.guid = a.guid++),
              (b = ht.events) || (b = ht.events = Object.create(null)),
              (m = ht.handle) ||
                (m = ht.handle =
                  function (jt) {
                    return typeof a < "u" && a.event.triggered !== jt.type
                      ? a.event.dispatch.apply(t, arguments)
                      : void 0;
                  }),
              i = (i || "").match(Ot) || [""],
              k = i.length;
            k--;

          )
            (_ = Ee.exec(i[k]) || []),
              (z = bt = _[1]),
              (lt = (_[2] || "").split(".").sort()),
              z &&
                ((L = a.event.special[z] || {}),
                (z = (d ? L.delegateType : L.bindType) || z),
                (L = a.event.special[z] || {}),
                (M = a.extend(
                  {
                    type: z,
                    origType: bt,
                    data: u,
                    handler: o,
                    guid: o.guid,
                    selector: d,
                    needsContext: d && a.expr.match.needsContext.test(d),
                    namespace: lt.join("."),
                  },
                  h
                )),
                (E = b[z]) ||
                  ((E = b[z] = []),
                  (E.delegateCount = 0),
                  (!L.setup || L.setup.call(t, u, lt, m) === !1) &&
                    t.addEventListener &&
                    t.addEventListener(z, m)),
                L.add &&
                  (L.add.call(t, M),
                  M.handler.guid || (M.handler.guid = o.guid)),
                d ? E.splice(E.delegateCount++, 0, M) : E.push(M),
                (a.event.global[z] = !0));
      },
      remove: function (t, i, o, u, d) {
        var h,
          m,
          _,
          b,
          k,
          M,
          L,
          E,
          z,
          lt,
          bt,
          ht = tt.hasData(t) && tt.get(t);
        if (!(!ht || !(b = ht.events))) {
          for (i = (i || "").match(Ot) || [""], k = i.length; k--; ) {
            if (
              ((_ = Ee.exec(i[k]) || []),
              (z = bt = _[1]),
              (lt = (_[2] || "").split(".").sort()),
              !z)
            ) {
              for (z in b) a.event.remove(t, z + i[k], o, u, !0);
              continue;
            }
            for (
              L = a.event.special[z] || {},
                z = (u ? L.delegateType : L.bindType) || z,
                E = b[z] || [],
                _ =
                  _[2] &&
                  new RegExp("(^|\\.)" + lt.join("\\.(?:.*\\.|)") + "(\\.|$)"),
                m = h = E.length;
              h--;

            )
              (M = E[h]),
                (d || bt === M.origType) &&
                  (!o || o.guid === M.guid) &&
                  (!_ || _.test(M.namespace)) &&
                  (!u || u === M.selector || (u === "**" && M.selector)) &&
                  (E.splice(h, 1),
                  M.selector && E.delegateCount--,
                  L.remove && L.remove.call(t, M));
            m &&
              !E.length &&
              ((!L.teardown || L.teardown.call(t, lt, ht.handle) === !1) &&
                a.removeEvent(t, z, ht.handle),
              delete b[z]);
          }
          a.isEmptyObject(b) && tt.remove(t, "handle events");
        }
      },
      dispatch: function (t) {
        var i,
          o,
          u,
          d,
          h,
          m,
          _ = new Array(arguments.length),
          b = a.event.fix(t),
          k = (tt.get(this, "events") || Object.create(null))[b.type] || [],
          M = a.event.special[b.type] || {};
        for (_[0] = b, i = 1; i < arguments.length; i++) _[i] = arguments[i];
        if (
          ((b.delegateTarget = this),
          !(M.preDispatch && M.preDispatch.call(this, b) === !1))
        ) {
          for (
            m = a.event.handlers.call(this, b, k), i = 0;
            (d = m[i++]) && !b.isPropagationStopped();

          )
            for (
              b.currentTarget = d.elem, o = 0;
              (h = d.handlers[o++]) && !b.isImmediatePropagationStopped();

            )
              (!b.rnamespace ||
                h.namespace === !1 ||
                b.rnamespace.test(h.namespace)) &&
                ((b.handleObj = h),
                (b.data = h.data),
                (u = (
                  (a.event.special[h.origType] || {}).handle || h.handler
                ).apply(d.elem, _)),
                u !== void 0 &&
                  (b.result = u) === !1 &&
                  (b.preventDefault(), b.stopPropagation()));
          return M.postDispatch && M.postDispatch.call(this, b), b.result;
        }
      },
      handlers: function (t, i) {
        var o,
          u,
          d,
          h,
          m,
          _ = [],
          b = i.delegateCount,
          k = t.target;
        if (b && k.nodeType && !(t.type === "click" && t.button >= 1)) {
          for (; k !== this; k = k.parentNode || this)
            if (
              k.nodeType === 1 &&
              !(t.type === "click" && k.disabled === !0)
            ) {
              for (h = [], m = {}, o = 0; o < b; o++)
                (u = i[o]),
                  (d = u.selector + " "),
                  m[d] === void 0 &&
                    (m[d] = u.needsContext
                      ? a(d, this).index(k) > -1
                      : a.find(d, this, null, [k]).length),
                  m[d] && h.push(u);
              h.length && _.push({ elem: k, handlers: h });
            }
        }
        return (
          (k = this),
          b < i.length && _.push({ elem: k, handlers: i.slice(b) }),
          _
        );
      },
      addProp: function (t, i) {
        Object.defineProperty(a.Event.prototype, t, {
          enumerable: !0,
          configurable: !0,
          get: P(i)
            ? function () {
                if (this.originalEvent) return i(this.originalEvent);
              }
            : function () {
                if (this.originalEvent) return this.originalEvent[t];
              },
          set: function (o) {
            Object.defineProperty(this, t, {
              enumerable: !0,
              configurable: !0,
              writable: !0,
              value: o,
            });
          },
        });
      },
      fix: function (t) {
        return t[a.expando] ? t : new a.Event(t);
      },
      special: {
        load: { noBubble: !0 },
        click: {
          setup: function (t) {
            var i = this || t;
            return (
              Oe.test(i.type) && i.click && Z(i, "input") && vi(i, "click", !0),
              !1
            );
          },
          trigger: function (t) {
            var i = this || t;
            return (
              Oe.test(i.type) && i.click && Z(i, "input") && vi(i, "click"), !0
            );
          },
          _default: function (t) {
            var i = t.target;
            return (
              (Oe.test(i.type) &&
                i.click &&
                Z(i, "input") &&
                tt.get(i, "click")) ||
              Z(i, "a")
            );
          },
        },
        beforeunload: {
          postDispatch: function (t) {
            t.result !== void 0 &&
              t.originalEvent &&
              (t.originalEvent.returnValue = t.result);
          },
        },
      },
    };
    function vi(t, i, o) {
      if (!o) {
        tt.get(t, i) === void 0 && a.event.add(t, i, xe);
        return;
      }
      tt.set(t, i, !1),
        a.event.add(t, i, {
          namespace: !1,
          handler: function (u) {
            var d,
              h = tt.get(this, i);
            if (u.isTrigger & 1 && this[i]) {
              if (h)
                (a.event.special[i] || {}).delegateType && u.stopPropagation();
              else if (
                ((h = f.call(arguments)),
                tt.set(this, i, h),
                this[i](),
                (d = tt.get(this, i)),
                tt.set(this, i, !1),
                h !== d)
              )
                return u.stopImmediatePropagation(), u.preventDefault(), d;
            } else
              h &&
                (tt.set(this, i, a.event.trigger(h[0], h.slice(1), this)),
                u.stopPropagation(),
                (u.isImmediatePropagationStopped = xe));
          },
        });
    }
    (a.removeEvent = function (t, i, o) {
      t.removeEventListener && t.removeEventListener(i, o);
    }),
      (a.Event = function (t, i) {
        if (!(this instanceof a.Event)) return new a.Event(t, i);
        t && t.type
          ? ((this.originalEvent = t),
            (this.type = t.type),
            (this.isDefaultPrevented =
              t.defaultPrevented ||
              (t.defaultPrevented === void 0 && t.returnValue === !1)
                ? xe
                : Se),
            (this.target =
              t.target && t.target.nodeType === 3
                ? t.target.parentNode
                : t.target),
            (this.currentTarget = t.currentTarget),
            (this.relatedTarget = t.relatedTarget))
          : (this.type = t),
          i && a.extend(this, i),
          (this.timeStamp = (t && t.timeStamp) || Date.now()),
          (this[a.expando] = !0);
      }),
      (a.Event.prototype = {
        constructor: a.Event,
        isDefaultPrevented: Se,
        isPropagationStopped: Se,
        isImmediatePropagationStopped: Se,
        isSimulated: !1,
        preventDefault: function () {
          var t = this.originalEvent;
          (this.isDefaultPrevented = xe),
            t && !this.isSimulated && t.preventDefault();
        },
        stopPropagation: function () {
          var t = this.originalEvent;
          (this.isPropagationStopped = xe),
            t && !this.isSimulated && t.stopPropagation();
        },
        stopImmediatePropagation: function () {
          var t = this.originalEvent;
          (this.isImmediatePropagationStopped = xe),
            t && !this.isSimulated && t.stopImmediatePropagation(),
            this.stopPropagation();
        },
      }),
      a.each(
        {
          altKey: !0,
          bubbles: !0,
          cancelable: !0,
          changedTouches: !0,
          ctrlKey: !0,
          detail: !0,
          eventPhase: !0,
          metaKey: !0,
          pageX: !0,
          pageY: !0,
          shiftKey: !0,
          view: !0,
          char: !0,
          code: !0,
          charCode: !0,
          key: !0,
          keyCode: !0,
          button: !0,
          buttons: !0,
          clientX: !0,
          clientY: !0,
          offsetX: !0,
          offsetY: !0,
          pointerId: !0,
          pointerType: !0,
          screenX: !0,
          screenY: !0,
          targetTouches: !0,
          toElement: !0,
          touches: !0,
          which: !0,
        },
        a.event.addProp
      ),
      a.each({ focus: "focusin", blur: "focusout" }, function (t, i) {
        function o(u) {
          if (D.documentMode) {
            var d = tt.get(this, "handle"),
              h = a.event.fix(u);
            (h.type = u.type === "focusin" ? "focus" : "blur"),
              (h.isSimulated = !0),
              d(u),
              h.target === h.currentTarget && d(h);
          } else a.event.simulate(i, u.target, a.event.fix(u));
        }
        (a.event.special[t] = {
          setup: function () {
            var u;
            if ((vi(this, t, !0), D.documentMode))
              (u = tt.get(this, i)),
                u || this.addEventListener(i, o),
                tt.set(this, i, (u || 0) + 1);
            else return !1;
          },
          trigger: function () {
            return vi(this, t), !0;
          },
          teardown: function () {
            var u;
            if (D.documentMode)
              (u = tt.get(this, i) - 1),
                u
                  ? tt.set(this, i, u)
                  : (this.removeEventListener(i, o), tt.remove(this, i));
            else return !1;
          },
          _default: function (u) {
            return tt.get(u.target, t);
          },
          delegateType: i,
        }),
          (a.event.special[i] = {
            setup: function () {
              var u = this.ownerDocument || this.document || this,
                d = D.documentMode ? this : u,
                h = tt.get(d, i);
              h ||
                (D.documentMode
                  ? this.addEventListener(i, o)
                  : u.addEventListener(t, o, !0)),
                tt.set(d, i, (h || 0) + 1);
            },
            teardown: function () {
              var u = this.ownerDocument || this.document || this,
                d = D.documentMode ? this : u,
                h = tt.get(d, i) - 1;
              h
                ? tt.set(d, i, h)
                : (D.documentMode
                    ? this.removeEventListener(i, o)
                    : u.removeEventListener(t, o, !0),
                  tt.remove(d, i));
            },
          });
      }),
      a.each(
        {
          mouseenter: "mouseover",
          mouseleave: "mouseout",
          pointerenter: "pointerover",
          pointerleave: "pointerout",
        },
        function (t, i) {
          a.event.special[t] = {
            delegateType: i,
            bindType: i,
            handle: function (o) {
              var u,
                d = this,
                h = o.relatedTarget,
                m = o.handleObj;
              return (
                (!h || (h !== d && !a.contains(d, h))) &&
                  ((o.type = m.origType),
                  (u = m.handler.apply(this, arguments)),
                  (o.type = i)),
                u
              );
            },
          };
        }
      ),
      a.fn.extend({
        on: function (t, i, o, u) {
          return Ei(this, t, i, o, u);
        },
        one: function (t, i, o, u) {
          return Ei(this, t, i, o, u, 1);
        },
        off: function (t, i, o) {
          var u, d;
          if (t && t.preventDefault && t.handleObj)
            return (
              (u = t.handleObj),
              a(t.delegateTarget).off(
                u.namespace ? u.origType + "." + u.namespace : u.origType,
                u.selector,
                u.handler
              ),
              this
            );
          if (typeof t == "object") {
            for (d in t) this.off(d, i, t[d]);
            return this;
          }
          return (
            (i === !1 || typeof i == "function") && ((o = i), (i = void 0)),
            o === !1 && (o = Se),
            this.each(function () {
              a.event.remove(this, t, o, i);
            })
          );
        },
      });
    var rn = /<script|<style|<link/i,
      nn = /checked\s*(?:[^=]|=\s*.checked.)/i,
      sn = /^\s*<!\[CDATA\[|\]\]>\s*$/g;
    function sr(t, i) {
      return (
        (Z(t, "table") &&
          Z(i.nodeType !== 11 ? i : i.firstChild, "tr") &&
          a(t).children("tbody")[0]) ||
        t
      );
    }
    function on(t) {
      return (t.type = (t.getAttribute("type") !== null) + "/" + t.type), t;
    }
    function an(t) {
      return (
        (t.type || "").slice(0, 5) === "true/"
          ? (t.type = t.type.slice(5))
          : t.removeAttribute("type"),
        t
      );
    }
    function or(t, i) {
      var o, u, d, h, m, _, b;
      if (i.nodeType === 1) {
        if (tt.hasData(t) && ((h = tt.get(t)), (b = h.events), b)) {
          tt.remove(i, "handle events");
          for (d in b)
            for (o = 0, u = b[d].length; o < u; o++) a.event.add(i, d, b[d][o]);
        }
        Dt.hasData(t) &&
          ((m = Dt.access(t)), (_ = a.extend({}, m)), Dt.set(i, _));
      }
    }
    function un(t, i) {
      var o = i.nodeName.toLowerCase();
      o === "input" && Oe.test(t.type)
        ? (i.checked = t.checked)
        : (o === "input" || o === "textarea") &&
          (i.defaultValue = t.defaultValue);
    }
    function Ke(t, i, o, u) {
      i = p(i);
      var d,
        h,
        m,
        _,
        b,
        k,
        M = 0,
        L = t.length,
        E = L - 1,
        z = i[0],
        lt = P(z);
      if (lt || (L > 1 && typeof z == "string" && !A.checkClone && nn.test(z)))
        return t.each(function (bt) {
          var ht = t.eq(bt);
          lt && (i[0] = z.call(this, bt, ht.html())), Ke(ht, i, o, u);
        });
      if (
        L &&
        ((d = be(i, t[0].ownerDocument, !1, t, u)),
        (h = d.firstChild),
        d.childNodes.length === 1 && (d = h),
        h || u)
      ) {
        for (m = a.map($(d, "script"), on), _ = m.length; M < L; M++)
          (b = d),
            M !== E &&
              ((b = a.clone(b, !0, !0)), _ && a.merge(m, $(b, "script"))),
            o.call(t[M], b, M);
        if (_)
          for (
            k = m[m.length - 1].ownerDocument, a.map(m, an), M = 0;
            M < _;
            M++
          )
            (b = m[M]),
              mi.test(b.type || "") &&
                !tt.access(b, "globalEval") &&
                a.contains(k, b) &&
                (b.src && (b.type || "").toLowerCase() !== "module"
                  ? a._evalUrl &&
                    !b.noModule &&
                    a._evalUrl(
                      b.src,
                      { nonce: b.nonce || b.getAttribute("nonce") },
                      k
                    )
                  : R(b.textContent.replace(sn, ""), b, k));
      }
      return t;
    }
    function ar(t, i, o) {
      for (var u, d = i ? a.filter(i, t) : t, h = 0; (u = d[h]) != null; h++)
        !o && u.nodeType === 1 && a.cleanData($(u)),
          u.parentNode &&
            (o && zt(u) && dt($(u, "script")), u.parentNode.removeChild(u));
      return t;
    }
    a.extend({
      htmlPrefilter: function (t) {
        return t;
      },
      clone: function (t, i, o) {
        var u,
          d,
          h,
          m,
          _ = t.cloneNode(!0),
          b = zt(t);
        if (
          !A.noCloneChecked &&
          (t.nodeType === 1 || t.nodeType === 11) &&
          !a.isXMLDoc(t)
        )
          for (m = $(_), h = $(t), u = 0, d = h.length; u < d; u++)
            un(h[u], m[u]);
        if (i)
          if (o)
            for (h = h || $(t), m = m || $(_), u = 0, d = h.length; u < d; u++)
              or(h[u], m[u]);
          else or(t, _);
        return (
          (m = $(_, "script")), m.length > 0 && dt(m, !b && $(t, "script")), _
        );
      },
      cleanData: function (t) {
        for (
          var i, o, u, d = a.event.special, h = 0;
          (o = t[h]) !== void 0;
          h++
        )
          if (ne(o)) {
            if ((i = o[tt.expando])) {
              if (i.events)
                for (u in i.events)
                  d[u] ? a.event.remove(o, u) : a.removeEvent(o, u, i.handle);
              o[tt.expando] = void 0;
            }
            o[Dt.expando] && (o[Dt.expando] = void 0);
          }
      },
    }),
      a.fn.extend({
        detach: function (t) {
          return ar(this, t, !0);
        },
        remove: function (t) {
          return ar(this, t);
        },
        text: function (t) {
          return Rt(
            this,
            function (i) {
              return i === void 0
                ? a.text(this)
                : this.empty().each(function () {
                    (this.nodeType === 1 ||
                      this.nodeType === 11 ||
                      this.nodeType === 9) &&
                      (this.textContent = i);
                  });
            },
            null,
            t,
            arguments.length
          );
        },
        append: function () {
          return Ke(this, arguments, function (t) {
            if (
              this.nodeType === 1 ||
              this.nodeType === 11 ||
              this.nodeType === 9
            ) {
              var i = sr(this, t);
              i.appendChild(t);
            }
          });
        },
        prepend: function () {
          return Ke(this, arguments, function (t) {
            if (
              this.nodeType === 1 ||
              this.nodeType === 11 ||
              this.nodeType === 9
            ) {
              var i = sr(this, t);
              i.insertBefore(t, i.firstChild);
            }
          });
        },
        before: function () {
          return Ke(this, arguments, function (t) {
            this.parentNode && this.parentNode.insertBefore(t, this);
          });
        },
        after: function () {
          return Ke(this, arguments, function (t) {
            this.parentNode &&
              this.parentNode.insertBefore(t, this.nextSibling);
          });
        },
        empty: function () {
          for (var t, i = 0; (t = this[i]) != null; i++)
            t.nodeType === 1 && (a.cleanData($(t, !1)), (t.textContent = ""));
          return this;
        },
        clone: function (t, i) {
          return (
            (t = t ?? !1),
            (i = i ?? t),
            this.map(function () {
              return a.clone(this, t, i);
            })
          );
        },
        html: function (t) {
          return Rt(
            this,
            function (i) {
              var o = this[0] || {},
                u = 0,
                d = this.length;
              if (i === void 0 && o.nodeType === 1) return o.innerHTML;
              if (
                typeof i == "string" &&
                !rn.test(i) &&
                !qt[(ye.exec(i) || ["", ""])[1].toLowerCase()]
              ) {
                i = a.htmlPrefilter(i);
                try {
                  for (; u < d; u++)
                    (o = this[u] || {}),
                      o.nodeType === 1 &&
                        (a.cleanData($(o, !1)), (o.innerHTML = i));
                  o = 0;
                } catch {}
              }
              o && this.empty().append(i);
            },
            null,
            t,
            arguments.length
          );
        },
        replaceWith: function () {
          var t = [];
          return Ke(
            this,
            arguments,
            function (i) {
              var o = this.parentNode;
              a.inArray(this, t) < 0 &&
                (a.cleanData($(this)), o && o.replaceChild(i, this));
            },
            t
          );
        },
      }),
      a.each(
        {
          appendTo: "append",
          prependTo: "prepend",
          insertBefore: "before",
          insertAfter: "after",
          replaceAll: "replaceWith",
        },
        function (t, i) {
          a.fn[t] = function (o) {
            for (var u, d = [], h = a(o), m = h.length - 1, _ = 0; _ <= m; _++)
              (u = _ === m ? this : this.clone(!0)),
                a(h[_])[i](u),
                g.apply(d, u.get());
            return this.pushStack(d);
          };
        }
      );
    var Di = new RegExp("^(" + Be + ")(?!px)[a-z%]+$", "i"),
      Ii = /^--/,
      yi = function (t) {
        var i = t.ownerDocument.defaultView;
        return (!i || !i.opener) && (i = e), i.getComputedStyle(t);
      },
      ur = function (t, i, o) {
        var u,
          d,
          h = {};
        for (d in i) (h[d] = t.style[d]), (t.style[d] = i[d]);
        u = o.call(t);
        for (d in i) t.style[d] = h[d];
        return u;
      },
      ln = new RegExp(te.join("|"), "i");
    (function () {
      function t() {
        if (k) {
          (b.style.cssText =
            "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0"),
            (k.style.cssText =
              "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%"),
            se.appendChild(b).appendChild(k);
          var M = e.getComputedStyle(k);
          (o = M.top !== "1%"),
            (_ = i(M.marginLeft) === 12),
            (k.style.right = "60%"),
            (h = i(M.right) === 36),
            (u = i(M.width) === 36),
            (k.style.position = "absolute"),
            (d = i(k.offsetWidth / 3) === 12),
            se.removeChild(b),
            (k = null);
        }
      }
      function i(M) {
        return Math.round(parseFloat(M));
      }
      var o,
        u,
        d,
        h,
        m,
        _,
        b = D.createElement("div"),
        k = D.createElement("div");
      k.style &&
        ((k.style.backgroundClip = "content-box"),
        (k.cloneNode(!0).style.backgroundClip = ""),
        (A.clearCloneStyle = k.style.backgroundClip === "content-box"),
        a.extend(A, {
          boxSizingReliable: function () {
            return t(), u;
          },
          pixelBoxStyles: function () {
            return t(), h;
          },
          pixelPosition: function () {
            return t(), o;
          },
          reliableMarginLeft: function () {
            return t(), _;
          },
          scrollboxSize: function () {
            return t(), d;
          },
          reliableTrDimensions: function () {
            var M, L, E, z;
            return (
              m == null &&
                ((M = D.createElement("table")),
                (L = D.createElement("tr")),
                (E = D.createElement("div")),
                (M.style.cssText =
                  "position:absolute;left:-11111px;border-collapse:separate"),
                (L.style.cssText = "box-sizing:content-box;border:1px solid"),
                (L.style.height = "1px"),
                (E.style.height = "9px"),
                (E.style.display = "block"),
                se.appendChild(M).appendChild(L).appendChild(E),
                (z = e.getComputedStyle(L)),
                (m =
                  parseInt(z.height, 10) +
                    parseInt(z.borderTopWidth, 10) +
                    parseInt(z.borderBottomWidth, 10) ===
                  L.offsetHeight),
                se.removeChild(M)),
              m
            );
          },
        }));
    })();
    function ii(t, i, o) {
      var u,
        d,
        h,
        m,
        _ = Ii.test(i),
        b = t.style;
      return (
        (o = o || yi(t)),
        o &&
          ((m = o.getPropertyValue(i) || o[i]),
          _ && m && (m = m.replace(xt, "$1") || void 0),
          m === "" && !zt(t) && (m = a.style(t, i)),
          !A.pixelBoxStyles() &&
            Di.test(m) &&
            ln.test(i) &&
            ((u = b.width),
            (d = b.minWidth),
            (h = b.maxWidth),
            (b.minWidth = b.maxWidth = b.width = m),
            (m = o.width),
            (b.width = u),
            (b.minWidth = d),
            (b.maxWidth = h))),
        m !== void 0 ? m + "" : m
      );
    }
    function lr(t, i) {
      return {
        get: function () {
          if (t()) {
            delete this.get;
            return;
          }
          return (this.get = i).apply(this, arguments);
        },
      };
    }
    var cr = ["Webkit", "Moz", "ms"],
      fr = D.createElement("div").style,
      dr = {};
    function cn(t) {
      for (var i = t[0].toUpperCase() + t.slice(1), o = cr.length; o--; )
        if (((t = cr[o] + i), t in fr)) return t;
    }
    function Mi(t) {
      var i = a.cssProps[t] || dr[t];
      return i || (t in fr ? t : (dr[t] = cn(t) || t));
    }
    var fn = /^(none|table(?!-c[ea]).+)/,
      dn = { position: "absolute", visibility: "hidden", display: "block" },
      hr = { letterSpacing: "0", fontWeight: "400" };
    function pr(t, i, o) {
      var u = me.exec(i);
      return u ? Math.max(0, u[2] - (o || 0)) + (u[3] || "px") : i;
    }
    function ji(t, i, o, u, d, h) {
      var m = i === "width" ? 1 : 0,
        _ = 0,
        b = 0,
        k = 0;
      if (o === (u ? "border" : "content")) return 0;
      for (; m < 4; m += 2)
        o === "margin" && (k += a.css(t, o + te[m], !0, d)),
          u
            ? (o === "content" && (b -= a.css(t, "padding" + te[m], !0, d)),
              o !== "margin" &&
                (b -= a.css(t, "border" + te[m] + "Width", !0, d)))
            : ((b += a.css(t, "padding" + te[m], !0, d)),
              o !== "padding"
                ? (b += a.css(t, "border" + te[m] + "Width", !0, d))
                : (_ += a.css(t, "border" + te[m] + "Width", !0, d)));
      return (
        !u &&
          h >= 0 &&
          (b +=
            Math.max(
              0,
              Math.ceil(
                t["offset" + i[0].toUpperCase() + i.slice(1)] - h - b - _ - 0.5
              )
            ) || 0),
        b + k
      );
    }
    function gr(t, i, o) {
      var u = yi(t),
        d = !A.boxSizingReliable() || o,
        h = d && a.css(t, "boxSizing", !1, u) === "border-box",
        m = h,
        _ = ii(t, i, u),
        b = "offset" + i[0].toUpperCase() + i.slice(1);
      if (Di.test(_)) {
        if (!o) return _;
        _ = "auto";
      }
      return (
        ((!A.boxSizingReliable() && h) ||
          (!A.reliableTrDimensions() && Z(t, "tr")) ||
          _ === "auto" ||
          (!parseFloat(_) && a.css(t, "display", !1, u) === "inline")) &&
          t.getClientRects().length &&
          ((h = a.css(t, "boxSizing", !1, u) === "border-box"),
          (m = b in t),
          m && (_ = t[b])),
        (_ = parseFloat(_) || 0),
        _ + ji(t, i, o || (h ? "border" : "content"), m, u, _) + "px"
      );
    }
    a.extend({
      cssHooks: {
        opacity: {
          get: function (t, i) {
            if (i) {
              var o = ii(t, "opacity");
              return o === "" ? "1" : o;
            }
          },
        },
      },
      cssNumber: {
        animationIterationCount: !0,
        aspectRatio: !0,
        borderImageSlice: !0,
        columnCount: !0,
        flexGrow: !0,
        flexShrink: !0,
        fontWeight: !0,
        gridArea: !0,
        gridColumn: !0,
        gridColumnEnd: !0,
        gridColumnStart: !0,
        gridRow: !0,
        gridRowEnd: !0,
        gridRowStart: !0,
        lineHeight: !0,
        opacity: !0,
        order: !0,
        orphans: !0,
        scale: !0,
        widows: !0,
        zIndex: !0,
        zoom: !0,
        fillOpacity: !0,
        floodOpacity: !0,
        stopOpacity: !0,
        strokeMiterlimit: !0,
        strokeOpacity: !0,
      },
      cssProps: {},
      style: function (t, i, o, u) {
        if (!(!t || t.nodeType === 3 || t.nodeType === 8 || !t.style)) {
          var d,
            h,
            m,
            _ = Mt(i),
            b = Ii.test(i),
            k = t.style;
          if (
            (b || (i = Mi(_)),
            (m = a.cssHooks[i] || a.cssHooks[_]),
            o !== void 0)
          ) {
            if (
              ((h = typeof o),
              h === "string" &&
                (d = me.exec(o)) &&
                d[1] &&
                ((o = ti(t, i, d)), (h = "number")),
              o == null || o !== o)
            )
              return;
            h === "number" &&
              !b &&
              (o += (d && d[3]) || (a.cssNumber[_] ? "" : "px")),
              !A.clearCloneStyle &&
                o === "" &&
                i.indexOf("background") === 0 &&
                (k[i] = "inherit"),
              (!m || !("set" in m) || (o = m.set(t, o, u)) !== void 0) &&
                (b ? k.setProperty(i, o) : (k[i] = o));
          } else
            return m && "get" in m && (d = m.get(t, !1, u)) !== void 0
              ? d
              : k[i];
        }
      },
      css: function (t, i, o, u) {
        var d,
          h,
          m,
          _ = Mt(i),
          b = Ii.test(i);
        return (
          b || (i = Mi(_)),
          (m = a.cssHooks[i] || a.cssHooks[_]),
          m && "get" in m && (d = m.get(t, !0, o)),
          d === void 0 && (d = ii(t, i, u)),
          d === "normal" && i in hr && (d = hr[i]),
          o === "" || o
            ? ((h = parseFloat(d)), o === !0 || isFinite(h) ? h || 0 : d)
            : d
        );
      },
    }),
      a.each(["height", "width"], function (t, i) {
        a.cssHooks[i] = {
          get: function (o, u, d) {
            if (u)
              return fn.test(a.css(o, "display")) &&
                (!o.getClientRects().length || !o.getBoundingClientRect().width)
                ? ur(o, dn, function () {
                    return gr(o, i, d);
                  })
                : gr(o, i, d);
          },
          set: function (o, u, d) {
            var h,
              m = yi(o),
              _ = !A.scrollboxSize() && m.position === "absolute",
              b = _ || d,
              k = b && a.css(o, "boxSizing", !1, m) === "border-box",
              M = d ? ji(o, i, d, k, m) : 0;
            return (
              k &&
                _ &&
                (M -= Math.ceil(
                  o["offset" + i[0].toUpperCase() + i.slice(1)] -
                    parseFloat(m[i]) -
                    ji(o, i, "border", !1, m) -
                    0.5
                )),
              M &&
                (h = me.exec(u)) &&
                (h[3] || "px") !== "px" &&
                ((o.style[i] = u), (u = a.css(o, i))),
              pr(o, u, M)
            );
          },
        };
      }),
      (a.cssHooks.marginLeft = lr(A.reliableMarginLeft, function (t, i) {
        if (i)
          return (
            (parseFloat(ii(t, "marginLeft")) ||
              t.getBoundingClientRect().left -
                ur(t, { marginLeft: 0 }, function () {
                  return t.getBoundingClientRect().left;
                })) + "px"
          );
      })),
      a.each({ margin: "", padding: "", border: "Width" }, function (t, i) {
        (a.cssHooks[t + i] = {
          expand: function (o) {
            for (
              var u = 0, d = {}, h = typeof o == "string" ? o.split(" ") : [o];
              u < 4;
              u++
            )
              d[t + te[u] + i] = h[u] || h[u - 2] || h[0];
            return d;
          },
        }),
          t !== "margin" && (a.cssHooks[t + i].set = pr);
      }),
      a.fn.extend({
        css: function (t, i) {
          return Rt(
            this,
            function (o, u, d) {
              var h,
                m,
                _ = {},
                b = 0;
              if (Array.isArray(u)) {
                for (h = yi(o), m = u.length; b < m; b++)
                  _[u[b]] = a.css(o, u[b], !1, h);
                return _;
              }
              return d !== void 0 ? a.style(o, u, d) : a.css(o, u);
            },
            t,
            i,
            arguments.length > 1
          );
        },
      });
    function Vt(t, i, o, u, d) {
      return new Vt.prototype.init(t, i, o, u, d);
    }
    (a.Tween = Vt),
      (Vt.prototype = {
        constructor: Vt,
        init: function (t, i, o, u, d, h) {
          (this.elem = t),
            (this.prop = o),
            (this.easing = d || a.easing._default),
            (this.options = i),
            (this.start = this.now = this.cur()),
            (this.end = u),
            (this.unit = h || (a.cssNumber[o] ? "" : "px"));
        },
        cur: function () {
          var t = Vt.propHooks[this.prop];
          return t && t.get ? t.get(this) : Vt.propHooks._default.get(this);
        },
        run: function (t) {
          var i,
            o = Vt.propHooks[this.prop];
          return (
            this.options.duration
              ? (this.pos = i =
                  a.easing[this.easing](
                    t,
                    this.options.duration * t,
                    0,
                    1,
                    this.options.duration
                  ))
              : (this.pos = i = t),
            (this.now = (this.end - this.start) * i + this.start),
            this.options.step &&
              this.options.step.call(this.elem, this.now, this),
            o && o.set ? o.set(this) : Vt.propHooks._default.set(this),
            this
          );
        },
      }),
      (Vt.prototype.init.prototype = Vt.prototype),
      (Vt.propHooks = {
        _default: {
          get: function (t) {
            var i;
            return t.elem.nodeType !== 1 ||
              (t.elem[t.prop] != null && t.elem.style[t.prop] == null)
              ? t.elem[t.prop]
              : ((i = a.css(t.elem, t.prop, "")), !i || i === "auto" ? 0 : i);
          },
          set: function (t) {
            a.fx.step[t.prop]
              ? a.fx.step[t.prop](t)
              : t.elem.nodeType === 1 &&
                (a.cssHooks[t.prop] || t.elem.style[Mi(t.prop)] != null)
              ? a.style(t.elem, t.prop, t.now + t.unit)
              : (t.elem[t.prop] = t.now);
          },
        },
      }),
      (Vt.propHooks.scrollTop = Vt.propHooks.scrollLeft =
        {
          set: function (t) {
            t.elem.nodeType && t.elem.parentNode && (t.elem[t.prop] = t.now);
          },
        }),
      (a.easing = {
        linear: function (t) {
          return t;
        },
        swing: function (t) {
          return 0.5 - Math.cos(t * Math.PI) / 2;
        },
        _default: "swing",
      }),
      (a.fx = Vt.prototype.init),
      (a.fx.step = {});
    var Ye,
      bi,
      hn = /^(?:toggle|show|hide)$/,
      pn = /queueHooks$/;
    function Ni() {
      bi &&
        (D.hidden === !1 && e.requestAnimationFrame
          ? e.requestAnimationFrame(Ni)
          : e.setTimeout(Ni, a.fx.interval),
        a.fx.tick());
    }
    function mr() {
      return (
        e.setTimeout(function () {
          Ye = void 0;
        }),
        (Ye = Date.now())
      );
    }
    function xi(t, i) {
      var o,
        u = 0,
        d = { height: t };
      for (i = i ? 1 : 0; u < 4; u += 2 - i)
        (o = te[u]), (d["margin" + o] = d["padding" + o] = t);
      return i && (d.opacity = d.width = t), d;
    }
    function vr(t, i, o) {
      for (
        var u,
          d = (ee.tweeners[i] || []).concat(ee.tweeners["*"]),
          h = 0,
          m = d.length;
        h < m;
        h++
      )
        if ((u = d[h].call(o, i, t))) return u;
    }
    function gn(t, i, o) {
      var u,
        d,
        h,
        m,
        _,
        b,
        k,
        M,
        L = "width" in i || "height" in i,
        E = this,
        z = {},
        lt = t.style,
        bt = t.nodeType && Pe(t),
        ht = tt.get(t, "fxshow");
      o.queue ||
        ((m = a._queueHooks(t, "fx")),
        m.unqueued == null &&
          ((m.unqueued = 0),
          (_ = m.empty.fire),
          (m.empty.fire = function () {
            m.unqueued || _();
          })),
        m.unqueued++,
        E.always(function () {
          E.always(function () {
            m.unqueued--, a.queue(t, "fx").length || m.empty.fire();
          });
        }));
      for (u in i)
        if (((d = i[u]), hn.test(d))) {
          if (
            (delete i[u],
            (h = h || d === "toggle"),
            d === (bt ? "hide" : "show"))
          )
            if (d === "show" && ht && ht[u] !== void 0) bt = !0;
            else continue;
          z[u] = (ht && ht[u]) || a.style(t, u);
        }
      if (((b = !a.isEmptyObject(i)), !(!b && a.isEmptyObject(z)))) {
        L &&
          t.nodeType === 1 &&
          ((o.overflow = [lt.overflow, lt.overflowX, lt.overflowY]),
          (k = ht && ht.display),
          k == null && (k = tt.get(t, "display")),
          (M = a.css(t, "display")),
          M === "none" &&
            (k
              ? (M = k)
              : (ve([t], !0),
                (k = t.style.display || k),
                (M = a.css(t, "display")),
                ve([t]))),
          (M === "inline" || (M === "inline-block" && k != null)) &&
            a.css(t, "float") === "none" &&
            (b ||
              (E.done(function () {
                lt.display = k;
              }),
              k == null && ((M = lt.display), (k = M === "none" ? "" : M))),
            (lt.display = "inline-block"))),
          o.overflow &&
            ((lt.overflow = "hidden"),
            E.always(function () {
              (lt.overflow = o.overflow[0]),
                (lt.overflowX = o.overflow[1]),
                (lt.overflowY = o.overflow[2]);
            })),
          (b = !1);
        for (u in z)
          b ||
            (ht
              ? "hidden" in ht && (bt = ht.hidden)
              : (ht = tt.access(t, "fxshow", { display: k })),
            h && (ht.hidden = !bt),
            bt && ve([t], !0),
            E.done(function () {
              bt || ve([t]), tt.remove(t, "fxshow");
              for (u in z) a.style(t, u, z[u]);
            })),
            (b = vr(bt ? ht[u] : 0, u, E)),
            u in ht ||
              ((ht[u] = b.start), bt && ((b.end = b.start), (b.start = 0)));
      }
    }
    function mn(t, i) {
      var o, u, d, h, m;
      for (o in t)
        if (
          ((u = Mt(o)),
          (d = i[u]),
          (h = t[o]),
          Array.isArray(h) && ((d = h[1]), (h = t[o] = h[0])),
          o !== u && ((t[u] = h), delete t[o]),
          (m = a.cssHooks[u]),
          m && "expand" in m)
        ) {
          (h = m.expand(h)), delete t[u];
          for (o in h) o in t || ((t[o] = h[o]), (i[o] = d));
        } else i[u] = d;
    }
    function ee(t, i, o) {
      var u,
        d,
        h = 0,
        m = ee.prefilters.length,
        _ = a.Deferred().always(function () {
          delete b.elem;
        }),
        b = function () {
          if (d) return !1;
          for (
            var L = Ye || mr(),
              E = Math.max(0, k.startTime + k.duration - L),
              z = E / k.duration || 0,
              lt = 1 - z,
              bt = 0,
              ht = k.tweens.length;
            bt < ht;
            bt++
          )
            k.tweens[bt].run(lt);
          return (
            _.notifyWith(t, [k, lt, E]),
            lt < 1 && ht
              ? E
              : (ht || _.notifyWith(t, [k, 1, 0]), _.resolveWith(t, [k]), !1)
          );
        },
        k = _.promise({
          elem: t,
          props: a.extend({}, i),
          opts: a.extend(
            !0,
            { specialEasing: {}, easing: a.easing._default },
            o
          ),
          originalProperties: i,
          originalOptions: o,
          startTime: Ye || mr(),
          duration: o.duration,
          tweens: [],
          createTween: function (L, E) {
            var z = a.Tween(
              t,
              k.opts,
              L,
              E,
              k.opts.specialEasing[L] || k.opts.easing
            );
            return k.tweens.push(z), z;
          },
          stop: function (L) {
            var E = 0,
              z = L ? k.tweens.length : 0;
            if (d) return this;
            for (d = !0; E < z; E++) k.tweens[E].run(1);
            return (
              L
                ? (_.notifyWith(t, [k, 1, 0]), _.resolveWith(t, [k, L]))
                : _.rejectWith(t, [k, L]),
              this
            );
          },
        }),
        M = k.props;
      for (mn(M, k.opts.specialEasing); h < m; h++)
        if (((u = ee.prefilters[h].call(k, t, M, k.opts)), u))
          return (
            P(u.stop) &&
              (a._queueHooks(k.elem, k.opts.queue).stop = u.stop.bind(u)),
            u
          );
      return (
        a.map(M, vr, k),
        P(k.opts.start) && k.opts.start.call(t, k),
        k
          .progress(k.opts.progress)
          .done(k.opts.done, k.opts.complete)
          .fail(k.opts.fail)
          .always(k.opts.always),
        a.fx.timer(a.extend(b, { elem: t, anim: k, queue: k.opts.queue })),
        k
      );
    }
    (a.Animation = a.extend(ee, {
      tweeners: {
        "*": [
          function (t, i) {
            var o = this.createTween(t, i);
            return ti(o.elem, t, me.exec(i), o), o;
          },
        ],
      },
      tweener: function (t, i) {
        P(t) ? ((i = t), (t = ["*"])) : (t = t.match(Ot));
        for (var o, u = 0, d = t.length; u < d; u++)
          (o = t[u]),
            (ee.tweeners[o] = ee.tweeners[o] || []),
            ee.tweeners[o].unshift(i);
      },
      prefilters: [gn],
      prefilter: function (t, i) {
        i ? ee.prefilters.unshift(t) : ee.prefilters.push(t);
      },
    })),
      (a.speed = function (t, i, o) {
        var u =
          t && typeof t == "object"
            ? a.extend({}, t)
            : {
                complete: o || (!o && i) || (P(t) && t),
                duration: t,
                easing: (o && i) || (i && !P(i) && i),
              };
        return (
          a.fx.off
            ? (u.duration = 0)
            : typeof u.duration != "number" &&
              (u.duration in a.fx.speeds
                ? (u.duration = a.fx.speeds[u.duration])
                : (u.duration = a.fx.speeds._default)),
          (u.queue == null || u.queue === !0) && (u.queue = "fx"),
          (u.old = u.complete),
          (u.complete = function () {
            P(u.old) && u.old.call(this), u.queue && a.dequeue(this, u.queue);
          }),
          u
        );
      }),
      a.fn.extend({
        fadeTo: function (t, i, o, u) {
          return this.filter(Pe)
            .css("opacity", 0)
            .show()
            .end()
            .animate({ opacity: i }, t, o, u);
        },
        animate: function (t, i, o, u) {
          var d = a.isEmptyObject(t),
            h = a.speed(i, o, u),
            m = function () {
              var _ = ee(this, a.extend({}, t), h);
              (d || tt.get(this, "finish")) && _.stop(!0);
            };
          return (
            (m.finish = m),
            d || h.queue === !1 ? this.each(m) : this.queue(h.queue, m)
          );
        },
        stop: function (t, i, o) {
          var u = function (d) {
            var h = d.stop;
            delete d.stop, h(o);
          };
          return (
            typeof t != "string" && ((o = i), (i = t), (t = void 0)),
            i && this.queue(t || "fx", []),
            this.each(function () {
              var d = !0,
                h = t != null && t + "queueHooks",
                m = a.timers,
                _ = tt.get(this);
              if (h) _[h] && _[h].stop && u(_[h]);
              else for (h in _) _[h] && _[h].stop && pn.test(h) && u(_[h]);
              for (h = m.length; h--; )
                m[h].elem === this &&
                  (t == null || m[h].queue === t) &&
                  (m[h].anim.stop(o), (d = !1), m.splice(h, 1));
              (d || !o) && a.dequeue(this, t);
            })
          );
        },
        finish: function (t) {
          return (
            t !== !1 && (t = t || "fx"),
            this.each(function () {
              var i,
                o = tt.get(this),
                u = o[t + "queue"],
                d = o[t + "queueHooks"],
                h = a.timers,
                m = u ? u.length : 0;
              for (
                o.finish = !0,
                  a.queue(this, t, []),
                  d && d.stop && d.stop.call(this, !0),
                  i = h.length;
                i--;

              )
                h[i].elem === this &&
                  h[i].queue === t &&
                  (h[i].anim.stop(!0), h.splice(i, 1));
              for (i = 0; i < m; i++)
                u[i] && u[i].finish && u[i].finish.call(this);
              delete o.finish;
            })
          );
        },
      }),
      a.each(["toggle", "show", "hide"], function (t, i) {
        var o = a.fn[i];
        a.fn[i] = function (u, d, h) {
          return u == null || typeof u == "boolean"
            ? o.apply(this, arguments)
            : this.animate(xi(i, !0), u, d, h);
        };
      }),
      a.each(
        {
          slideDown: xi("show"),
          slideUp: xi("hide"),
          slideToggle: xi("toggle"),
          fadeIn: { opacity: "show" },
          fadeOut: { opacity: "hide" },
          fadeToggle: { opacity: "toggle" },
        },
        function (t, i) {
          a.fn[t] = function (o, u, d) {
            return this.animate(i, o, u, d);
          };
        }
      ),
      (a.timers = []),
      (a.fx.tick = function () {
        var t,
          i = 0,
          o = a.timers;
        for (Ye = Date.now(); i < o.length; i++)
          (t = o[i]), !t() && o[i] === t && o.splice(i--, 1);
        o.length || a.fx.stop(), (Ye = void 0);
      }),
      (a.fx.timer = function (t) {
        a.timers.push(t), a.fx.start();
      }),
      (a.fx.interval = 13),
      (a.fx.start = function () {
        bi || ((bi = !0), Ni());
      }),
      (a.fx.stop = function () {
        bi = null;
      }),
      (a.fx.speeds = { slow: 600, fast: 200, _default: 400 }),
      (a.fn.delay = function (t, i) {
        return (
          (t = (a.fx && a.fx.speeds[t]) || t),
          (i = i || "fx"),
          this.queue(i, function (o, u) {
            var d = e.setTimeout(o, t);
            u.stop = function () {
              e.clearTimeout(d);
            };
          })
        );
      }),
      (function () {
        var t = D.createElement("input"),
          i = D.createElement("select"),
          o = i.appendChild(D.createElement("option"));
        (t.type = "checkbox"),
          (A.checkOn = t.value !== ""),
          (A.optSelected = o.selected),
          (t = D.createElement("input")),
          (t.value = "t"),
          (t.type = "radio"),
          (A.radioValue = t.value === "t");
      })();
    var yr,
      ri = a.expr.attrHandle;
    a.fn.extend({
      attr: function (t, i) {
        return Rt(this, a.attr, t, i, arguments.length > 1);
      },
      removeAttr: function (t) {
        return this.each(function () {
          a.removeAttr(this, t);
        });
      },
    }),
      a.extend({
        attr: function (t, i, o) {
          var u,
            d,
            h = t.nodeType;
          if (!(h === 3 || h === 8 || h === 2)) {
            if (typeof t.getAttribute > "u") return a.prop(t, i, o);
            if (
              ((h !== 1 || !a.isXMLDoc(t)) &&
                (d =
                  a.attrHooks[i.toLowerCase()] ||
                  (a.expr.match.bool.test(i) ? yr : void 0)),
              o !== void 0)
            ) {
              if (o === null) {
                a.removeAttr(t, i);
                return;
              }
              return d && "set" in d && (u = d.set(t, o, i)) !== void 0
                ? u
                : (t.setAttribute(i, o + ""), o);
            }
            return d && "get" in d && (u = d.get(t, i)) !== null
              ? u
              : ((u = a.find.attr(t, i)), u ?? void 0);
          }
        },
        attrHooks: {
          type: {
            set: function (t, i) {
              if (!A.radioValue && i === "radio" && Z(t, "input")) {
                var o = t.value;
                return t.setAttribute("type", i), o && (t.value = o), i;
              }
            },
          },
        },
        removeAttr: function (t, i) {
          var o,
            u = 0,
            d = i && i.match(Ot);
          if (d && t.nodeType === 1)
            for (; (o = d[u++]); ) t.removeAttribute(o);
        },
      }),
      (yr = {
        set: function (t, i, o) {
          return i === !1 ? a.removeAttr(t, o) : t.setAttribute(o, o), o;
        },
      }),
      a.each(a.expr.match.bool.source.match(/\w+/g), function (t, i) {
        var o = ri[i] || a.find.attr;
        ri[i] = function (u, d, h) {
          var m,
            _,
            b = d.toLowerCase();
          return (
            h ||
              ((_ = ri[b]),
              (ri[b] = m),
              (m = o(u, d, h) != null ? b : null),
              (ri[b] = _)),
            m
          );
        };
      });
    var vn = /^(?:input|select|textarea|button)$/i,
      yn = /^(?:a|area)$/i;
    a.fn.extend({
      prop: function (t, i) {
        return Rt(this, a.prop, t, i, arguments.length > 1);
      },
      removeProp: function (t) {
        return this.each(function () {
          delete this[a.propFix[t] || t];
        });
      },
    }),
      a.extend({
        prop: function (t, i, o) {
          var u,
            d,
            h = t.nodeType;
          if (!(h === 3 || h === 8 || h === 2))
            return (
              (h !== 1 || !a.isXMLDoc(t)) &&
                ((i = a.propFix[i] || i), (d = a.propHooks[i])),
              o !== void 0
                ? d && "set" in d && (u = d.set(t, o, i)) !== void 0
                  ? u
                  : (t[i] = o)
                : d && "get" in d && (u = d.get(t, i)) !== null
                ? u
                : t[i]
            );
        },
        propHooks: {
          tabIndex: {
            get: function (t) {
              var i = a.find.attr(t, "tabindex");
              return i
                ? parseInt(i, 10)
                : vn.test(t.nodeName) || (yn.test(t.nodeName) && t.href)
                ? 0
                : -1;
            },
          },
        },
        propFix: { for: "htmlFor", class: "className" },
      }),
      A.optSelected ||
        (a.propHooks.selected = {
          get: function (t) {
            var i = t.parentNode;
            return i && i.parentNode && i.parentNode.selectedIndex, null;
          },
          set: function (t) {
            var i = t.parentNode;
            i && (i.selectedIndex, i.parentNode && i.parentNode.selectedIndex);
          },
        }),
      a.each(
        [
          "tabIndex",
          "readOnly",
          "maxLength",
          "cellSpacing",
          "cellPadding",
          "rowSpan",
          "colSpan",
          "useMap",
          "frameBorder",
          "contentEditable",
        ],
        function () {
          a.propFix[this.toLowerCase()] = this;
        }
      );
    function $e(t) {
      var i = t.match(Ot) || [];
      return i.join(" ");
    }
    function Fe(t) {
      return (t.getAttribute && t.getAttribute("class")) || "";
    }
    function Li(t) {
      return Array.isArray(t)
        ? t
        : typeof t == "string"
        ? t.match(Ot) || []
        : [];
    }
    a.fn.extend({
      addClass: function (t) {
        var i, o, u, d, h, m;
        return P(t)
          ? this.each(function (_) {
              a(this).addClass(t.call(this, _, Fe(this)));
            })
          : ((i = Li(t)),
            i.length
              ? this.each(function () {
                  if (
                    ((u = Fe(this)),
                    (o = this.nodeType === 1 && " " + $e(u) + " "),
                    o)
                  ) {
                    for (h = 0; h < i.length; h++)
                      (d = i[h]),
                        o.indexOf(" " + d + " ") < 0 && (o += d + " ");
                    (m = $e(o)), u !== m && this.setAttribute("class", m);
                  }
                })
              : this);
      },
      removeClass: function (t) {
        var i, o, u, d, h, m;
        return P(t)
          ? this.each(function (_) {
              a(this).removeClass(t.call(this, _, Fe(this)));
            })
          : arguments.length
          ? ((i = Li(t)),
            i.length
              ? this.each(function () {
                  if (
                    ((u = Fe(this)),
                    (o = this.nodeType === 1 && " " + $e(u) + " "),
                    o)
                  ) {
                    for (h = 0; h < i.length; h++)
                      for (d = i[h]; o.indexOf(" " + d + " ") > -1; )
                        o = o.replace(" " + d + " ", " ");
                    (m = $e(o)), u !== m && this.setAttribute("class", m);
                  }
                })
              : this)
          : this.attr("class", "");
      },
      toggleClass: function (t, i) {
        var o,
          u,
          d,
          h,
          m = typeof t,
          _ = m === "string" || Array.isArray(t);
        return P(t)
          ? this.each(function (b) {
              a(this).toggleClass(t.call(this, b, Fe(this), i), i);
            })
          : typeof i == "boolean" && _
          ? i
            ? this.addClass(t)
            : this.removeClass(t)
          : ((o = Li(t)),
            this.each(function () {
              if (_)
                for (h = a(this), d = 0; d < o.length; d++)
                  (u = o[d]), h.hasClass(u) ? h.removeClass(u) : h.addClass(u);
              else
                (t === void 0 || m === "boolean") &&
                  ((u = Fe(this)),
                  u && tt.set(this, "__className__", u),
                  this.setAttribute &&
                    this.setAttribute(
                      "class",
                      u || t === !1 ? "" : tt.get(this, "__className__") || ""
                    ));
            }));
      },
      hasClass: function (t) {
        var i,
          o,
          u = 0;
        for (i = " " + t + " "; (o = this[u++]); )
          if (o.nodeType === 1 && (" " + $e(Fe(o)) + " ").indexOf(i) > -1)
            return !0;
        return !1;
      },
    });
    var bn = /\r/g;
    a.fn.extend({
      val: function (t) {
        var i,
          o,
          u,
          d = this[0];
        return arguments.length
          ? ((u = P(t)),
            this.each(function (h) {
              var m;
              this.nodeType === 1 &&
                (u ? (m = t.call(this, h, a(this).val())) : (m = t),
                m == null
                  ? (m = "")
                  : typeof m == "number"
                  ? (m += "")
                  : Array.isArray(m) &&
                    (m = a.map(m, function (_) {
                      return _ == null ? "" : _ + "";
                    })),
                (i =
                  a.valHooks[this.type] ||
                  a.valHooks[this.nodeName.toLowerCase()]),
                (!i || !("set" in i) || i.set(this, m, "value") === void 0) &&
                  (this.value = m));
            }))
          : d
          ? ((i = a.valHooks[d.type] || a.valHooks[d.nodeName.toLowerCase()]),
            i && "get" in i && (o = i.get(d, "value")) !== void 0
              ? o
              : ((o = d.value),
                typeof o == "string" ? o.replace(bn, "") : o ?? ""))
          : void 0;
      },
    }),
      a.extend({
        valHooks: {
          option: {
            get: function (t) {
              var i = a.find.attr(t, "value");
              return i ?? $e(a.text(t));
            },
          },
          select: {
            get: function (t) {
              var i,
                o,
                u,
                d = t.options,
                h = t.selectedIndex,
                m = t.type === "select-one",
                _ = m ? null : [],
                b = m ? h + 1 : d.length;
              for (h < 0 ? (u = b) : (u = m ? h : 0); u < b; u++)
                if (
                  ((o = d[u]),
                  (o.selected || u === h) &&
                    !o.disabled &&
                    (!o.parentNode.disabled || !Z(o.parentNode, "optgroup")))
                ) {
                  if (((i = a(o).val()), m)) return i;
                  _.push(i);
                }
              return _;
            },
            set: function (t, i) {
              for (
                var o, u, d = t.options, h = a.makeArray(i), m = d.length;
                m--;

              )
                (u = d[m]),
                  (u.selected = a.inArray(a.valHooks.option.get(u), h) > -1) &&
                    (o = !0);
              return o || (t.selectedIndex = -1), h;
            },
          },
        },
      }),
      a.each(["radio", "checkbox"], function () {
        (a.valHooks[this] = {
          set: function (t, i) {
            if (Array.isArray(i))
              return (t.checked = a.inArray(a(t).val(), i) > -1);
          },
        }),
          A.checkOn ||
            (a.valHooks[this].get = function (t) {
              return t.getAttribute("value") === null ? "on" : t.value;
            });
      });
    var ni = e.location,
      br = { guid: Date.now() },
      Hi = /\?/;
    a.parseXML = function (t) {
      var i, o;
      if (!t || typeof t != "string") return null;
      try {
        i = new e.DOMParser().parseFromString(t, "text/xml");
      } catch {}
      return (
        (o = i && i.getElementsByTagName("parsererror")[0]),
        (!i || o) &&
          a.error(
            "Invalid XML: " +
              (o
                ? a.map(o.childNodes, function (u) {
                    return u.textContent;
                  }).join(`
`)
                : t)
          ),
        i
      );
    };
    var xr = /^(?:focusinfocus|focusoutblur)$/,
      Sr = function (t) {
        t.stopPropagation();
      };
    a.extend(a.event, {
      trigger: function (t, i, o, u) {
        var d,
          h,
          m,
          _,
          b,
          k,
          M,
          L,
          E = [o || D],
          z = v.call(t, "type") ? t.type : t,
          lt = v.call(t, "namespace") ? t.namespace.split(".") : [];
        if (
          ((h = L = m = o = o || D),
          !(o.nodeType === 3 || o.nodeType === 8) &&
            !xr.test(z + a.event.triggered) &&
            (z.indexOf(".") > -1 &&
              ((lt = z.split(".")), (z = lt.shift()), lt.sort()),
            (b = z.indexOf(":") < 0 && "on" + z),
            (t = t[a.expando] ? t : new a.Event(z, typeof t == "object" && t)),
            (t.isTrigger = u ? 2 : 3),
            (t.namespace = lt.join(".")),
            (t.rnamespace = t.namespace
              ? new RegExp("(^|\\.)" + lt.join("\\.(?:.*\\.|)") + "(\\.|$)")
              : null),
            (t.result = void 0),
            t.target || (t.target = o),
            (i = i == null ? [t] : a.makeArray(i, [t])),
            (M = a.event.special[z] || {}),
            !(!u && M.trigger && M.trigger.apply(o, i) === !1)))
        ) {
          if (!u && !M.noBubble && !j(o)) {
            for (
              _ = M.delegateType || z, xr.test(_ + z) || (h = h.parentNode);
              h;
              h = h.parentNode
            )
              E.push(h), (m = h);
            m === (o.ownerDocument || D) &&
              E.push(m.defaultView || m.parentWindow || e);
          }
          for (d = 0; (h = E[d++]) && !t.isPropagationStopped(); )
            (L = h),
              (t.type = d > 1 ? _ : M.bindType || z),
              (k =
                (tt.get(h, "events") || Object.create(null))[t.type] &&
                tt.get(h, "handle")),
              k && k.apply(h, i),
              (k = b && h[b]),
              k &&
                k.apply &&
                ne(h) &&
                ((t.result = k.apply(h, i)),
                t.result === !1 && t.preventDefault());
          return (
            (t.type = z),
            !u &&
              !t.isDefaultPrevented() &&
              (!M._default || M._default.apply(E.pop(), i) === !1) &&
              ne(o) &&
              b &&
              P(o[z]) &&
              !j(o) &&
              ((m = o[b]),
              m && (o[b] = null),
              (a.event.triggered = z),
              t.isPropagationStopped() && L.addEventListener(z, Sr),
              o[z](),
              t.isPropagationStopped() && L.removeEventListener(z, Sr),
              (a.event.triggered = void 0),
              m && (o[b] = m)),
            t.result
          );
        }
      },
      simulate: function (t, i, o) {
        var u = a.extend(new a.Event(), o, { type: t, isSimulated: !0 });
        a.event.trigger(u, null, i);
      },
    }),
      a.fn.extend({
        trigger: function (t, i) {
          return this.each(function () {
            a.event.trigger(t, i, this);
          });
        },
        triggerHandler: function (t, i) {
          var o = this[0];
          if (o) return a.event.trigger(t, i, o, !0);
        },
      });
    var xn = /\[\]$/,
      _r = /\r?\n/g,
      Sn = /^(?:submit|button|image|reset|file)$/i,
      _n = /^(?:input|select|textarea|keygen)/i;
    function Ri(t, i, o, u) {
      var d;
      if (Array.isArray(i))
        a.each(i, function (h, m) {
          o || xn.test(t)
            ? u(t, m)
            : Ri(
                t + "[" + (typeof m == "object" && m != null ? h : "") + "]",
                m,
                o,
                u
              );
        });
      else if (!o && W(i) === "object")
        for (d in i) Ri(t + "[" + d + "]", i[d], o, u);
      else u(t, i);
    }
    (a.param = function (t, i) {
      var o,
        u = [],
        d = function (h, m) {
          var _ = P(m) ? m() : m;
          u[u.length] =
            encodeURIComponent(h) + "=" + encodeURIComponent(_ ?? "");
        };
      if (t == null) return "";
      if (Array.isArray(t) || (t.jquery && !a.isPlainObject(t)))
        a.each(t, function () {
          d(this.name, this.value);
        });
      else for (o in t) Ri(o, t[o], i, d);
      return u.join("&");
    }),
      a.fn.extend({
        serialize: function () {
          return a.param(this.serializeArray());
        },
        serializeArray: function () {
          return this.map(function () {
            var t = a.prop(this, "elements");
            return t ? a.makeArray(t) : this;
          })
            .filter(function () {
              var t = this.type;
              return (
                this.name &&
                !a(this).is(":disabled") &&
                _n.test(this.nodeName) &&
                !Sn.test(t) &&
                (this.checked || !Oe.test(t))
              );
            })
            .map(function (t, i) {
              var o = a(this).val();
              return o == null
                ? null
                : Array.isArray(o)
                ? a.map(o, function (u) {
                    return {
                      name: i.name,
                      value: u.replace(
                        _r,
                        `\r
`
                      ),
                    };
                  })
                : {
                    name: i.name,
                    value: o.replace(
                      _r,
                      `\r
`
                    ),
                  };
            })
            .get();
        },
      });
    var wn = /%20/g,
      An = /#.*$/,
      Cn = /([?&])_=[^&]*/,
      Tn = /^(.*?):[ \t]*([^\r\n]*)$/gm,
      kn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
      Pn = /^(?:GET|HEAD)$/,
      On = /^\/\//,
      wr = {},
      Bi = {},
      Ar = "*/".concat("*"),
      $i = D.createElement("a");
    $i.href = ni.href;
    function Cr(t) {
      return function (i, o) {
        typeof i != "string" && ((o = i), (i = "*"));
        var u,
          d = 0,
          h = i.toLowerCase().match(Ot) || [];
        if (P(o))
          for (; (u = h[d++]); )
            u[0] === "+"
              ? ((u = u.slice(1) || "*"), (t[u] = t[u] || []).unshift(o))
              : (t[u] = t[u] || []).push(o);
      };
    }
    function Tr(t, i, o, u) {
      var d = {},
        h = t === Bi;
      function m(_) {
        var b;
        return (
          (d[_] = !0),
          a.each(t[_] || [], function (k, M) {
            var L = M(i, o, u);
            if (typeof L == "string" && !h && !d[L])
              return i.dataTypes.unshift(L), m(L), !1;
            if (h) return !(b = L);
          }),
          b
        );
      }
      return m(i.dataTypes[0]) || (!d["*"] && m("*"));
    }
    function Fi(t, i) {
      var o,
        u,
        d = a.ajaxSettings.flatOptions || {};
      for (o in i) i[o] !== void 0 && ((d[o] ? t : u || (u = {}))[o] = i[o]);
      return u && a.extend(!0, t, u), t;
    }
    function En(t, i, o) {
      for (var u, d, h, m, _ = t.contents, b = t.dataTypes; b[0] === "*"; )
        b.shift(),
          u === void 0 &&
            (u = t.mimeType || i.getResponseHeader("Content-Type"));
      if (u) {
        for (d in _)
          if (_[d] && _[d].test(u)) {
            b.unshift(d);
            break;
          }
      }
      if (b[0] in o) h = b[0];
      else {
        for (d in o) {
          if (!b[0] || t.converters[d + " " + b[0]]) {
            h = d;
            break;
          }
          m || (m = d);
        }
        h = h || m;
      }
      if (h) return h !== b[0] && b.unshift(h), o[h];
    }
    function Dn(t, i, o, u) {
      var d,
        h,
        m,
        _,
        b,
        k = {},
        M = t.dataTypes.slice();
      if (M[1]) for (m in t.converters) k[m.toLowerCase()] = t.converters[m];
      for (h = M.shift(); h; )
        if (
          (t.responseFields[h] && (o[t.responseFields[h]] = i),
          !b && u && t.dataFilter && (i = t.dataFilter(i, t.dataType)),
          (b = h),
          (h = M.shift()),
          h)
        ) {
          if (h === "*") h = b;
          else if (b !== "*" && b !== h) {
            if (((m = k[b + " " + h] || k["* " + h]), !m)) {
              for (d in k)
                if (
                  ((_ = d.split(" ")),
                  _[1] === h && ((m = k[b + " " + _[0]] || k["* " + _[0]]), m))
                ) {
                  m === !0
                    ? (m = k[d])
                    : k[d] !== !0 && ((h = _[0]), M.unshift(_[1]));
                  break;
                }
            }
            if (m !== !0)
              if (m && t.throws) i = m(i);
              else
                try {
                  i = m(i);
                } catch (L) {
                  return {
                    state: "parsererror",
                    error: m ? L : "No conversion from " + b + " to " + h,
                  };
                }
          }
        }
      return { state: "success", data: i };
    }
    a.extend({
      active: 0,
      lastModified: {},
      etag: {},
      ajaxSettings: {
        url: ni.href,
        type: "GET",
        isLocal: kn.test(ni.protocol),
        global: !0,
        processData: !0,
        async: !0,
        contentType: "application/x-www-form-urlencoded; charset=UTF-8",
        accepts: {
          "*": Ar,
          text: "text/plain",
          html: "text/html",
          xml: "application/xml, text/xml",
          json: "application/json, text/javascript",
        },
        contents: { xml: /\bxml\b/, html: /\bhtml/, json: /\bjson\b/ },
        responseFields: {
          xml: "responseXML",
          text: "responseText",
          json: "responseJSON",
        },
        converters: {
          "* text": String,
          "text html": !0,
          "text json": JSON.parse,
          "text xml": a.parseXML,
        },
        flatOptions: { url: !0, context: !0 },
      },
      ajaxSetup: function (t, i) {
        return i ? Fi(Fi(t, a.ajaxSettings), i) : Fi(a.ajaxSettings, t);
      },
      ajaxPrefilter: Cr(wr),
      ajaxTransport: Cr(Bi),
      ajax: function (t, i) {
        typeof t == "object" && ((i = t), (t = void 0)), (i = i || {});
        var o,
          u,
          d,
          h,
          m,
          _,
          b,
          k,
          M,
          L,
          E = a.ajaxSetup({}, i),
          z = E.context || E,
          lt = E.context && (z.nodeType || z.jquery) ? a(z) : a.event,
          bt = a.Deferred(),
          ht = a.Callbacks("once memory"),
          jt = E.statusCode || {},
          It = {},
          oe = {},
          ae = "canceled",
          vt = {
            readyState: 0,
            getResponseHeader: function (St) {
              var Pt;
              if (b) {
                if (!h)
                  for (h = {}; (Pt = Tn.exec(d)); )
                    h[Pt[1].toLowerCase() + " "] = (
                      h[Pt[1].toLowerCase() + " "] || []
                    ).concat(Pt[2]);
                Pt = h[St.toLowerCase() + " "];
              }
              return Pt == null ? null : Pt.join(", ");
            },
            getAllResponseHeaders: function () {
              return b ? d : null;
            },
            setRequestHeader: function (St, Pt) {
              return (
                b == null &&
                  ((St = oe[St.toLowerCase()] = oe[St.toLowerCase()] || St),
                  (It[St] = Pt)),
                this
              );
            },
            overrideMimeType: function (St) {
              return b == null && (E.mimeType = St), this;
            },
            statusCode: function (St) {
              var Pt;
              if (St)
                if (b) vt.always(St[vt.status]);
                else for (Pt in St) jt[Pt] = [jt[Pt], St[Pt]];
              return this;
            },
            abort: function (St) {
              var Pt = St || ae;
              return o && o.abort(Pt), ze(0, Pt), this;
            },
          };
        if (
          (bt.promise(vt),
          (E.url = ((t || E.url || ni.href) + "").replace(
            On,
            ni.protocol + "//"
          )),
          (E.type = i.method || i.type || E.method || E.type),
          (E.dataTypes = (E.dataType || "*").toLowerCase().match(Ot) || [""]),
          E.crossDomain == null)
        ) {
          _ = D.createElement("a");
          try {
            (_.href = E.url),
              (_.href = _.href),
              (E.crossDomain =
                $i.protocol + "//" + $i.host != _.protocol + "//" + _.host);
          } catch {
            E.crossDomain = !0;
          }
        }
        if (
          (E.data &&
            E.processData &&
            typeof E.data != "string" &&
            (E.data = a.param(E.data, E.traditional)),
          Tr(wr, E, i, vt),
          b)
        )
          return vt;
        (k = a.event && E.global),
          k && a.active++ === 0 && a.event.trigger("ajaxStart"),
          (E.type = E.type.toUpperCase()),
          (E.hasContent = !Pn.test(E.type)),
          (u = E.url.replace(An, "")),
          E.hasContent
            ? E.data &&
              E.processData &&
              (E.contentType || "").indexOf(
                "application/x-www-form-urlencoded"
              ) === 0 &&
              (E.data = E.data.replace(wn, "+"))
            : ((L = E.url.slice(u.length)),
              E.data &&
                (E.processData || typeof E.data == "string") &&
                ((u += (Hi.test(u) ? "&" : "?") + E.data), delete E.data),
              E.cache === !1 &&
                ((u = u.replace(Cn, "$1")),
                (L = (Hi.test(u) ? "&" : "?") + "_=" + br.guid++ + L)),
              (E.url = u + L)),
          E.ifModified &&
            (a.lastModified[u] &&
              vt.setRequestHeader("If-Modified-Since", a.lastModified[u]),
            a.etag[u] && vt.setRequestHeader("If-None-Match", a.etag[u])),
          ((E.data && E.hasContent && E.contentType !== !1) || i.contentType) &&
            vt.setRequestHeader("Content-Type", E.contentType),
          vt.setRequestHeader(
            "Accept",
            E.dataTypes[0] && E.accepts[E.dataTypes[0]]
              ? E.accepts[E.dataTypes[0]] +
                  (E.dataTypes[0] !== "*" ? ", " + Ar + "; q=0.01" : "")
              : E.accepts["*"]
          );
        for (M in E.headers) vt.setRequestHeader(M, E.headers[M]);
        if (E.beforeSend && (E.beforeSend.call(z, vt, E) === !1 || b))
          return vt.abort();
        if (
          ((ae = "abort"),
          ht.add(E.complete),
          vt.done(E.success),
          vt.fail(E.error),
          (o = Tr(Bi, E, i, vt)),
          !o)
        )
          ze(-1, "No Transport");
        else {
          if (((vt.readyState = 1), k && lt.trigger("ajaxSend", [vt, E]), b))
            return vt;
          E.async &&
            E.timeout > 0 &&
            (m = e.setTimeout(function () {
              vt.abort("timeout");
            }, E.timeout));
          try {
            (b = !1), o.send(It, ze);
          } catch (St) {
            if (b) throw St;
            ze(-1, St);
          }
        }
        function ze(St, Pt, oi, qi) {
          var ue,
            ai,
            le,
            De,
            Ie,
            Xt = Pt;
          b ||
            ((b = !0),
            m && e.clearTimeout(m),
            (o = void 0),
            (d = qi || ""),
            (vt.readyState = St > 0 ? 4 : 0),
            (ue = (St >= 200 && St < 300) || St === 304),
            oi && (De = En(E, vt, oi)),
            !ue &&
              a.inArray("script", E.dataTypes) > -1 &&
              a.inArray("json", E.dataTypes) < 0 &&
              (E.converters["text script"] = function () {}),
            (De = Dn(E, De, vt, ue)),
            ue
              ? (E.ifModified &&
                  ((Ie = vt.getResponseHeader("Last-Modified")),
                  Ie && (a.lastModified[u] = Ie),
                  (Ie = vt.getResponseHeader("etag")),
                  Ie && (a.etag[u] = Ie)),
                St === 204 || E.type === "HEAD"
                  ? (Xt = "nocontent")
                  : St === 304
                  ? (Xt = "notmodified")
                  : ((Xt = De.state),
                    (ai = De.data),
                    (le = De.error),
                    (ue = !le)))
              : ((le = Xt),
                (St || !Xt) && ((Xt = "error"), St < 0 && (St = 0))),
            (vt.status = St),
            (vt.statusText = (Pt || Xt) + ""),
            ue
              ? bt.resolveWith(z, [ai, Xt, vt])
              : bt.rejectWith(z, [vt, Xt, le]),
            vt.statusCode(jt),
            (jt = void 0),
            k &&
              lt.trigger(ue ? "ajaxSuccess" : "ajaxError", [
                vt,
                E,
                ue ? ai : le,
              ]),
            ht.fireWith(z, [vt, Xt]),
            k &&
              (lt.trigger("ajaxComplete", [vt, E]),
              --a.active || a.event.trigger("ajaxStop")));
        }
        return vt;
      },
      getJSON: function (t, i, o) {
        return a.get(t, i, o, "json");
      },
      getScript: function (t, i) {
        return a.get(t, void 0, i, "script");
      },
    }),
      a.each(["get", "post"], function (t, i) {
        a[i] = function (o, u, d, h) {
          return (
            P(u) && ((h = h || d), (d = u), (u = void 0)),
            a.ajax(
              a.extend(
                { url: o, type: i, dataType: h, data: u, success: d },
                a.isPlainObject(o) && o
              )
            )
          );
        };
      }),
      a.ajaxPrefilter(function (t) {
        var i;
        for (i in t.headers)
          i.toLowerCase() === "content-type" &&
            (t.contentType = t.headers[i] || "");
      }),
      (a._evalUrl = function (t, i, o) {
        return a.ajax({
          url: t,
          type: "GET",
          dataType: "script",
          cache: !0,
          async: !1,
          global: !1,
          converters: { "text script": function () {} },
          dataFilter: function (u) {
            a.globalEval(u, i, o);
          },
        });
      }),
      a.fn.extend({
        wrapAll: function (t) {
          var i;
          return (
            this[0] &&
              (P(t) && (t = t.call(this[0])),
              (i = a(t, this[0].ownerDocument).eq(0).clone(!0)),
              this[0].parentNode && i.insertBefore(this[0]),
              i
                .map(function () {
                  for (var o = this; o.firstElementChild; )
                    o = o.firstElementChild;
                  return o;
                })
                .append(this)),
            this
          );
        },
        wrapInner: function (t) {
          return P(t)
            ? this.each(function (i) {
                a(this).wrapInner(t.call(this, i));
              })
            : this.each(function () {
                var i = a(this),
                  o = i.contents();
                o.length ? o.wrapAll(t) : i.append(t);
              });
        },
        wrap: function (t) {
          var i = P(t);
          return this.each(function (o) {
            a(this).wrapAll(i ? t.call(this, o) : t);
          });
        },
        unwrap: function (t) {
          return (
            this.parent(t)
              .not("body")
              .each(function () {
                a(this).replaceWith(this.childNodes);
              }),
            this
          );
        },
      }),
      (a.expr.pseudos.hidden = function (t) {
        return !a.expr.pseudos.visible(t);
      }),
      (a.expr.pseudos.visible = function (t) {
        return !!(t.offsetWidth || t.offsetHeight || t.getClientRects().length);
      }),
      (a.ajaxSettings.xhr = function () {
        try {
          return new e.XMLHttpRequest();
        } catch {}
      });
    var In = { 0: 200, 1223: 204 },
      si = a.ajaxSettings.xhr();
    (A.cors = !!si && "withCredentials" in si),
      (A.ajax = si = !!si),
      a.ajaxTransport(function (t) {
        var i, o;
        if (A.cors || (si && !t.crossDomain))
          return {
            send: function (u, d) {
              var h,
                m = t.xhr();
              if (
                (m.open(t.type, t.url, t.async, t.username, t.password),
                t.xhrFields)
              )
                for (h in t.xhrFields) m[h] = t.xhrFields[h];
              t.mimeType &&
                m.overrideMimeType &&
                m.overrideMimeType(t.mimeType),
                !t.crossDomain &&
                  !u["X-Requested-With"] &&
                  (u["X-Requested-With"] = "XMLHttpRequest");
              for (h in u) m.setRequestHeader(h, u[h]);
              (i = function (_) {
                return function () {
                  i &&
                    ((i =
                      o =
                      m.onload =
                      m.onerror =
                      m.onabort =
                      m.ontimeout =
                      m.onreadystatechange =
                        null),
                    _ === "abort"
                      ? m.abort()
                      : _ === "error"
                      ? typeof m.status != "number"
                        ? d(0, "error")
                        : d(m.status, m.statusText)
                      : d(
                          In[m.status] || m.status,
                          m.statusText,
                          (m.responseType || "text") !== "text" ||
                            typeof m.responseText != "string"
                            ? { binary: m.response }
                            : { text: m.responseText },
                          m.getAllResponseHeaders()
                        ));
                };
              }),
                (m.onload = i()),
                (o = m.onerror = m.ontimeout = i("error")),
                m.onabort !== void 0
                  ? (m.onabort = o)
                  : (m.onreadystatechange = function () {
                      m.readyState === 4 &&
                        e.setTimeout(function () {
                          i && o();
                        });
                    }),
                (i = i("abort"));
              try {
                m.send((t.hasContent && t.data) || null);
              } catch (_) {
                if (i) throw _;
              }
            },
            abort: function () {
              i && i();
            },
          };
      }),
      a.ajaxPrefilter(function (t) {
        t.crossDomain && (t.contents.script = !1);
      }),
      a.ajaxSetup({
        accepts: {
          script:
            "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",
        },
        contents: { script: /\b(?:java|ecma)script\b/ },
        converters: {
          "text script": function (t) {
            return a.globalEval(t), t;
          },
        },
      }),
      a.ajaxPrefilter("script", function (t) {
        t.cache === void 0 && (t.cache = !1), t.crossDomain && (t.type = "GET");
      }),
      a.ajaxTransport("script", function (t) {
        if (t.crossDomain || t.scriptAttrs) {
          var i, o;
          return {
            send: function (u, d) {
              (i = a("<script>")
                .attr(t.scriptAttrs || {})
                .prop({ charset: t.scriptCharset, src: t.url })
                .on(
                  "load error",
                  (o = function (h) {
                    i.remove(),
                      (o = null),
                      h && d(h.type === "error" ? 404 : 200, h.type);
                  })
                )),
                D.head.appendChild(i[0]);
            },
            abort: function () {
              o && o();
            },
          };
        }
      });
    var kr = [],
      zi = /(=)\?(?=&|$)|\?\?/;
    a.ajaxSetup({
      jsonp: "callback",
      jsonpCallback: function () {
        var t = kr.pop() || a.expando + "_" + br.guid++;
        return (this[t] = !0), t;
      },
    }),
      a.ajaxPrefilter("json jsonp", function (t, i, o) {
        var u,
          d,
          h,
          m =
            t.jsonp !== !1 &&
            (zi.test(t.url)
              ? "url"
              : typeof t.data == "string" &&
                (t.contentType || "").indexOf(
                  "application/x-www-form-urlencoded"
                ) === 0 &&
                zi.test(t.data) &&
                "data");
        if (m || t.dataTypes[0] === "jsonp")
          return (
            (u = t.jsonpCallback =
              P(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback),
            m
              ? (t[m] = t[m].replace(zi, "$1" + u))
              : t.jsonp !== !1 &&
                (t.url += (Hi.test(t.url) ? "&" : "?") + t.jsonp + "=" + u),
            (t.converters["script json"] = function () {
              return h || a.error(u + " was not called"), h[0];
            }),
            (t.dataTypes[0] = "json"),
            (d = e[u]),
            (e[u] = function () {
              h = arguments;
            }),
            o.always(function () {
              d === void 0 ? a(e).removeProp(u) : (e[u] = d),
                t[u] && ((t.jsonpCallback = i.jsonpCallback), kr.push(u)),
                h && P(d) && d(h[0]),
                (h = d = void 0);
            }),
            "script"
          );
      }),
      (A.createHTMLDocument = (function () {
        var t = D.implementation.createHTMLDocument("").body;
        return (
          (t.innerHTML = "<form></form><form></form>"),
          t.childNodes.length === 2
        );
      })()),
      (a.parseHTML = function (t, i, o) {
        if (typeof t != "string") return [];
        typeof i == "boolean" && ((o = i), (i = !1));
        var u, d, h;
        return (
          i ||
            (A.createHTMLDocument
              ? ((i = D.implementation.createHTMLDocument("")),
                (u = i.createElement("base")),
                (u.href = D.location.href),
                i.head.appendChild(u))
              : (i = D)),
          (d = nt.exec(t)),
          (h = !o && []),
          d
            ? [i.createElement(d[1])]
            : ((d = be([t], i, h)),
              h && h.length && a(h).remove(),
              a.merge([], d.childNodes))
        );
      }),
      (a.fn.load = function (t, i, o) {
        var u,
          d,
          h,
          m = this,
          _ = t.indexOf(" ");
        return (
          _ > -1 && ((u = $e(t.slice(_))), (t = t.slice(0, _))),
          P(i)
            ? ((o = i), (i = void 0))
            : i && typeof i == "object" && (d = "POST"),
          m.length > 0 &&
            a
              .ajax({ url: t, type: d || "GET", dataType: "html", data: i })
              .done(function (b) {
                (h = arguments),
                  m.html(u ? a("<div>").append(a.parseHTML(b)).find(u) : b);
              })
              .always(
                o &&
                  function (b, k) {
                    m.each(function () {
                      o.apply(this, h || [b.responseText, k, b]);
                    });
                  }
              ),
          this
        );
      }),
      (a.expr.pseudos.animated = function (t) {
        return a.grep(a.timers, function (i) {
          return t === i.elem;
        }).length;
      }),
      (a.offset = {
        setOffset: function (t, i, o) {
          var u,
            d,
            h,
            m,
            _,
            b,
            k,
            M = a.css(t, "position"),
            L = a(t),
            E = {};
          M === "static" && (t.style.position = "relative"),
            (_ = L.offset()),
            (h = a.css(t, "top")),
            (b = a.css(t, "left")),
            (k =
              (M === "absolute" || M === "fixed") &&
              (h + b).indexOf("auto") > -1),
            k
              ? ((u = L.position()), (m = u.top), (d = u.left))
              : ((m = parseFloat(h) || 0), (d = parseFloat(b) || 0)),
            P(i) && (i = i.call(t, o, a.extend({}, _))),
            i.top != null && (E.top = i.top - _.top + m),
            i.left != null && (E.left = i.left - _.left + d),
            "using" in i ? i.using.call(t, E) : L.css(E);
        },
      }),
      a.fn.extend({
        offset: function (t) {
          if (arguments.length)
            return t === void 0
              ? this
              : this.each(function (d) {
                  a.offset.setOffset(this, t, d);
                });
          var i,
            o,
            u = this[0];
          if (u)
            return u.getClientRects().length
              ? ((i = u.getBoundingClientRect()),
                (o = u.ownerDocument.defaultView),
                { top: i.top + o.pageYOffset, left: i.left + o.pageXOffset })
              : { top: 0, left: 0 };
        },
        position: function () {
          if (this[0]) {
            var t,
              i,
              o,
              u = this[0],
              d = { top: 0, left: 0 };
            if (a.css(u, "position") === "fixed") i = u.getBoundingClientRect();
            else {
              for (
                i = this.offset(),
                  o = u.ownerDocument,
                  t = u.offsetParent || o.documentElement;
                t &&
                (t === o.body || t === o.documentElement) &&
                a.css(t, "position") === "static";

              )
                t = t.parentNode;
              t &&
                t !== u &&
                t.nodeType === 1 &&
                ((d = a(t).offset()),
                (d.top += a.css(t, "borderTopWidth", !0)),
                (d.left += a.css(t, "borderLeftWidth", !0)));
            }
            return {
              top: i.top - d.top - a.css(u, "marginTop", !0),
              left: i.left - d.left - a.css(u, "marginLeft", !0),
            };
          }
        },
        offsetParent: function () {
          return this.map(function () {
            for (
              var t = this.offsetParent;
              t && a.css(t, "position") === "static";

            )
              t = t.offsetParent;
            return t || se;
          });
        },
      }),
      a.each(
        { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" },
        function (t, i) {
          var o = i === "pageYOffset";
          a.fn[t] = function (u) {
            return Rt(
              this,
              function (d, h, m) {
                var _;
                if (
                  (j(d) ? (_ = d) : d.nodeType === 9 && (_ = d.defaultView),
                  m === void 0)
                )
                  return _ ? _[i] : d[h];
                _
                  ? _.scrollTo(o ? _.pageXOffset : m, o ? m : _.pageYOffset)
                  : (d[h] = m);
              },
              t,
              u,
              arguments.length
            );
          };
        }
      ),
      a.each(["top", "left"], function (t, i) {
        a.cssHooks[i] = lr(A.pixelPosition, function (o, u) {
          if (u)
            return (u = ii(o, i)), Di.test(u) ? a(o).position()[i] + "px" : u;
        });
      }),
      a.each({ Height: "height", Width: "width" }, function (t, i) {
        a.each(
          { padding: "inner" + t, content: i, "": "outer" + t },
          function (o, u) {
            a.fn[u] = function (d, h) {
              var m = arguments.length && (o || typeof d != "boolean"),
                _ = o || (d === !0 || h === !0 ? "margin" : "border");
              return Rt(
                this,
                function (b, k, M) {
                  var L;
                  return j(b)
                    ? u.indexOf("outer") === 0
                      ? b["inner" + t]
                      : b.document.documentElement["client" + t]
                    : b.nodeType === 9
                    ? ((L = b.documentElement),
                      Math.max(
                        b.body["scroll" + t],
                        L["scroll" + t],
                        b.body["offset" + t],
                        L["offset" + t],
                        L["client" + t]
                      ))
                    : M === void 0
                    ? a.css(b, k, _)
                    : a.style(b, k, M, _);
                },
                i,
                m ? d : void 0,
                m
              );
            };
          }
        );
      }),
      a.each(
        [
          "ajaxStart",
          "ajaxStop",
          "ajaxComplete",
          "ajaxError",
          "ajaxSuccess",
          "ajaxSend",
        ],
        function (t, i) {
          a.fn[i] = function (o) {
            return this.on(i, o);
          };
        }
      ),
      a.fn.extend({
        bind: function (t, i, o) {
          return this.on(t, null, i, o);
        },
        unbind: function (t, i) {
          return this.off(t, null, i);
        },
        delegate: function (t, i, o, u) {
          return this.on(i, t, o, u);
        },
        undelegate: function (t, i, o) {
          return arguments.length === 1
            ? this.off(t, "**")
            : this.off(i, t || "**", o);
        },
        hover: function (t, i) {
          return this.on("mouseenter", t).on("mouseleave", i || t);
        },
      }),
      a.each(
        "blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(
          " "
        ),
        function (t, i) {
          a.fn[i] = function (o, u) {
            return arguments.length > 0
              ? this.on(i, null, o, u)
              : this.trigger(i);
          };
        }
      );
    var Mn = /^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
    (a.proxy = function (t, i) {
      var o, u, d;
      if ((typeof i == "string" && ((o = t[i]), (i = t), (t = o)), !!P(t)))
        return (
          (u = f.call(arguments, 2)),
          (d = function () {
            return t.apply(i || this, u.concat(f.call(arguments)));
          }),
          (d.guid = t.guid = t.guid || a.guid++),
          d
        );
    }),
      (a.holdReady = function (t) {
        t ? a.readyWait++ : a.ready(!0);
      }),
      (a.isArray = Array.isArray),
      (a.parseJSON = JSON.parse),
      (a.nodeName = Z),
      (a.isFunction = P),
      (a.isWindow = j),
      (a.camelCase = Mt),
      (a.type = W),
      (a.now = Date.now),
      (a.isNumeric = function (t) {
        var i = a.type(t);
        return (i === "number" || i === "string") && !isNaN(t - parseFloat(t));
      }),
      (a.trim = function (t) {
        return t == null ? "" : (t + "").replace(Mn, "$1");
      });
    var jn = e.jQuery,
      Nn = e.$;
    return (
      (a.noConflict = function (t) {
        return (
          e.$ === a && (e.$ = Nn), t && e.jQuery === a && (e.jQuery = jn), a
        );
      }),
      typeof s > "u" && (e.jQuery = e.$ = a),
      a
    );
  });
})(Xr);
var Xs = Xr.exports;
const Gr = Yr(Xs);
for (let n = 0; n < 256; n++) (n < 16 ? "0" : "") + n.toString(16);
window.$axExpo ||
  (window.$axExpo = {
    shortcutKey: "",
    resourceUrl: "",
    resourceAxureUrl: "",
    project: null,
    artboardMap: {},
    assetMap: {},
    imgMap: {},
    idMap: {},
    masterMap: {},
    bgImgLink: null,
    imgLoadTree: {},
    docObj: null,
    dataObj: null,
    objPaths: null,
    imgProcessedList: [],
    initProject: () => null,
    processImgSeed: () => null,
    processImgSeeds: () => null,
    genDocObj: () => null,
    previewEditPrototype: () => null,
    previewPrototype: () => null,
    pushHistory: () => null,
    popHistory: () => null,
    isLoaded: !1,
    isPreview: !1,
    enableLazyLoading: !0,
    generations: 2,
  });
window.$axExpo.initProject = (n, e, s, l, r, f = null) => {
  (window.$axExpo.shortcutKey = n),
    (window.$axExpo.resourceUrl = e),
    (window.$axExpo.resourceAxureUrl = s),
    (window.$axExpo.project = l),
    (window.$axExpo.artboardMap = {}),
    (window.$axExpo.assetMap = {}),
    (window.$axExpo.imgMap = {}),
    (window.$axExpo.idMap = {}),
    (window.$axExpo.masterMap = r),
    (window.$axExpo.bgImgLink = f),
    (window.$axExpo.imgLoadTree = {}),
    (window.$axExpo.imgProcessedList = []),
    (window.$axExpo.isLoaded = !0);
};
function Gs() {
  const n = {
    Type: it.NextScreen,
    Interaction: {
      Type: de.Click,
      Animation: {
        Out: { Easing: Ht.None, Animation: fe.None, Duration: 500 },
        In: { Easing: Ht.None, Animation: fe.None, Duration: 500 },
      },
    },
    TargetArtboardId: Dr,
  };
  return {
    Id: es(),
    Name: "",
    Setting: n,
    Type: it.NextScreen,
    ParentId: Dr,
    IsMaster: !1,
    RelativeToBottom: void 0,
    ModifiedOn: void 0,
    DeletedOn: void 0,
    IsModified: !1,
    IsDeleted: !1,
  };
}
function jr(n, e, s, l) {
  return { value: e(n), label: s(n), id: l(n) };
}
function Oi(n, e, s, l) {
  return n.map((r) => ({ value: e(r), label: s(r), id: l(r) }));
}
const Zs = function (n) {
  var e = Math.abs,
    s = Math.max,
    l = Math.min,
    r = Math.round;
  function f() {
    return n("<div/>");
  }
  (n.axImgAreaSelect = function (p, g) {
    var c = n(p),
      w,
      S = f(),
      v = f(),
      T = f().add(f()).add(f()).add(f()),
      x = f().add(f()).add(f()).add(f()),
      A = n([]),
      P,
      j,
      D,
      K = { left: 0, top: 0 },
      R,
      W,
      Y,
      F = { left: 0, top: 0 },
      a = 0,
      rt = "absolute",
      Z,
      pt,
      ut,
      ft,
      V,
      xt,
      Tt,
      Et,
      ot,
      At,
      H,
      B,
      q,
      nt,
      J,
      Q = { x1: 0, y1: 0, x2: 0, y2: 0, width: 0, height: 0 },
      yt = document.documentElement,
      Nt = navigator.userAgent,
      Kt,
      hi,
      re,
      Ot,
      Jt,
      $t,
      Te;
    function pe($) {
      return $ + K.left - F.left;
    }
    function ke($) {
      return $ + K.top - F.top;
    }
    function Yt($) {
      return $ - K.left + F.left;
    }
    function Ut($) {
      return $ - K.top + F.top;
    }
    function Rt($) {
      return $.pageX - F.left;
    }
    function Le($) {
      return $.pageY - F.top;
    }
    function Ft($) {
      var dt = $ || ut,
        _t = $ || ft;
      return {
        x1: r(Q.x1 * dt),
        y1: r(Q.y1 * _t),
        x2: r(Q.x2 * dt),
        y2: r(Q.y2 * _t),
        width: r(Q.x2 * dt) - r(Q.x1 * dt),
        height: r(Q.y2 * _t) - r(Q.y1 * _t),
      };
    }
    function Qe($, dt, _t, be, Ee) {
      var xe = Ee || ut,
        Se = Ee || ft;
      (Q = {
        x1: r($ / xe || 0),
        y1: r(dt / Se || 0),
        x2: r(_t / xe || 0),
        y2: r(be / Se || 0),
      }),
        (Q.width = Q.x2 - Q.x1),
        (Q.height = Q.y2 - Q.y1);
    }
    function Mt() {
      !w ||
        !c.width() ||
        ((K = { left: r(c.offset().left), top: r(c.offset().top) }),
        (R = c.innerWidth()),
        (W = c.innerHeight()),
        (K.left += (c.outerWidth() - R) >> 1),
        (K.top += (c.outerHeight() - W) >> 1),
        (xt = r(g.minWidth / ut) || 0),
        (Tt = r(g.minHeight / ft) || 0),
        (Et = r(l(g.maxWidth / ut || 1 << 24, R))),
        (ot = r(l(g.maxHeight / ft || 1 << 24, W))),
        n().jquery == "1.3.2" &&
          rt == "fixed" &&
          !yt.getBoundingClientRect &&
          ((K.top += s(document.body.scrollTop, yt.scrollTop)),
          (K.left += s(document.body.scrollLeft, yt.scrollLeft))),
        (F = /absolute|relative/.test(Y.css("position"))
          ? {
              left: r(Y.offset().left) - Y.scrollLeft(),
              top: r(Y.offset().top) - Y.scrollTop(),
            }
          : rt == "fixed"
          ? { left: n(document).scrollLeft(), top: n(document).scrollTop() }
          : { left: 0, top: 0 }),
        (j = pe(0)),
        (D = ke(0)),
        (Q.x2 > R || Q.y2 > W) && Ue());
    }
    function ne($) {
      if (H) {
        switch (
          (S.css({ left: pe(Q.x1), top: ke(Q.y1) })
            .add(v)
            .width((Jt = Q.width))
            .height(($t = Q.height)),
          v.add(T).add(A).css({ left: 0, top: 0 }),
          T.width(s(Jt - T.outerWidth() + T.innerWidth(), 0)).height(
            s($t - T.outerHeight() + T.innerHeight(), 0)
          ),
          n(x[0]).css({ left: j, top: D, width: Q.x1, height: W }),
          n(x[1]).css({ left: j + Q.x1, top: D, width: Jt, height: Q.y1 }),
          n(x[2]).css({ left: j + Q.x2, top: D, width: R - Q.x2, height: W }),
          n(x[3]).css({
            left: j + Q.x1,
            top: D + Q.y2,
            width: Jt,
            height: W - Q.y2,
          }),
          (Jt -= A.outerWidth()),
          ($t -= A.outerHeight()),
          A.length)
        ) {
          case 8:
            n(A[4]).css({ left: Jt >> 1 }),
              n(A[5]).css({ left: Jt, top: $t >> 1 }),
              n(A[6]).css({ left: Jt >> 1, top: $t }),
              n(A[7]).css({ top: $t >> 1 });
          case 4:
            A.slice(1, 3).css({ left: Jt }), A.slice(2, 4).css({ top: $t });
        }
        $ !== !1 &&
          (n.axImgAreaSelect.onKeyPress != Oe &&
            n(document).unbind(
              n.axImgAreaSelect.keyPress,
              n.axImgAreaSelect.onKeyPress
            ),
          g.keys &&
            n(document)[n.axImgAreaSelect.keyPress](
              (n.axImgAreaSelect.onKeyPress = Oe)
            )),
          ye &&
            T.outerWidth() - T.innerWidth() == 2 &&
            (T.css("margin", 0),
            setTimeout(function () {
              T.css("margin", "auto");
            }, 0));
      }
    }
    function ge($) {
      Mt(),
        ne($),
        (B = pe(Q.x1)),
        (q = ke(Q.y1)),
        (nt = pe(Q.x2)),
        (J = ke(Q.y2));
    }
    function tt($, dt) {
      g.fadeSpeed ? $.fadeOut(g.fadeSpeed, dt) : $.hide();
    }
    function Dt($) {
      At &&
        ($
          ? ((nt = s(j, l(j + R, B + e(J - q) * At * (nt > B || -1)))),
            (J = r(s(D, l(D + W, q + (e(nt - B) / At) * (J > q || -1))))),
            (nt = r(nt)))
          : ((J = s(D, l(D + W, q + (e(nt - B) / At) * (J > q || -1)))),
            (nt = r(s(j, l(j + R, B + e(J - q) * At * (nt > B || -1))))),
            (J = r(J))));
    }
    function Ue() {
      (B = l(B, j + R)),
        (q = l(q, D + W)),
        e(nt - B) < xt &&
          ((nt = B - xt * (nt < B || -1)),
          nt < j ? (B = j + xt) : nt > j + R && (B = j + R - xt)),
        e(J - q) < Tt &&
          ((J = q - Tt * (J < q || -1)),
          J < D ? (q = D + Tt) : J > D + W && (q = D + W - Tt)),
        (nt = s(j, l(nt, j + R))),
        (J = s(D, l(J, D + W))),
        Dt(e(nt - B) < e(J - q) * At),
        e(nt - B) > Et && ((nt = B - Et * (nt < B || -1)), Dt()),
        e(J - q) > ot && ((J = q - ot * (J < q || -1)), Dt(!0)),
        (Q = {
          x1: Yt(l(B, nt)),
          y1: Ut(l(q, J)),
          x2: Yt(s(B, nt)),
          y2: Ut(s(q, J)),
          width: e(nt - B),
          height: e(J - q),
        }),
        ne(),
        g.onSelectChange(p, Ft());
    }
    function He($, dt) {
      (nt = (B = $) + Q.width),
        (J = (q = dt) + Q.height),
        n.extend(Q, { x1: Yt(B), y1: Ut(q), x2: Yt(nt), y2: Ut(J) }),
        ne(),
        g.onSelectChange(p, Ft());
    }
    function Je() {
      n(document).unbind("mousemove", Je),
        Mt(),
        (nt = B),
        (J = q),
        Ue(),
        (V = ""),
        x.is(":visible") ||
          S.add(x)
            .hide()
            .fadeIn(g.fadeSpeed || 0),
        (function $() {
          n(".aximgareaselect-outer").height() != 0
            ? g.onOuterOverlayShown(p, Ft())
            : setTimeout($, 1);
        })(),
        (H = !0),
        n(document).unbind("mouseup", Re).mousemove(Pe).one("mouseup", ve),
        S.unbind("mousemove", zt),
        g.onSelectStart(p, Ft());
    }
    function Re() {
      n(document).unbind("mousemove", Je).unbind("mouseup", Re),
        tt(S.add(x)),
        Qe(Yt(B), Ut(q), Yt(B), Ut(q)),
        this instanceof n.axImgAreaSelect ||
          (g.onSelectChange(p, Ft()),
          g.onSelectEnd(p, Ft()),
          g.onSelectCancel(p, Ft()));
    }
    function Be($, dt) {
      for (var _t in dt) g[_t] !== void 0 && $.css(dt[_t], g[_t]);
    }
    function me($) {
      if (
        ($.parent && (Y = n($.parent)).append(S.add(x)),
        n.extend(g, $),
        $.handles != null)
      ) {
        for (
          A.remove(),
            A = n([]),
            re = $.handles ? ($.handles == "corners" ? 4 : 8) : 0;
          re--;

        )
          A = A.add(f());
        A.addClass(g.classPrefix + "-handle").css({
          position: "absolute",
          fontSize: 0,
          zIndex: a + 1 || 1,
        }),
          !parseInt(A.css("width")) >= 0 && A.width(5).height(5),
          (Ot = g.borderWidth) &&
            A.css({ borderWidth: Ot, borderStyle: "solid" }),
          Be(A, {
            borderColor1: "border-color",
            borderColor2: "background-color",
            borderOpacity: "opacity",
          });
      }
      for (
        ut = g.imageWidth / R || 1,
          ft = g.imageHeight / W || 1,
          $.x1 != null && (Qe($.x1, $.y1, $.x2, $.y2), ($.show = !$.hide())),
          $.keys && (g.keys = n.extend({ shift: 1, ctrl: "resize" }, $.keys)),
          x.addClass(g.classPrefix + "-outer"),
          v.addClass(g.classPrefix + "-selection"),
          re = 0;
        re < 4;
        re++
      )
        n(T[re]).addClass(g.classPrefix + "-border" + (re + 1));
      Be(v, {
        selectionColor: "background-color",
        selectionOpacity: "opacity",
      }),
        Be(T, { borderOpacity: "opacity", borderWidth: "border-width" }),
        Be(x, { outerColor: "background-color", outerOpacity: "opacity" }),
        (Ot = g.borderColor1) &&
          n(T[0]).css({ borderStyle: "solid", borderColor: Ot }),
        (Ot = g.borderColor2) &&
          n(T[1]).css({ borderStyle: "dashed", borderColor: Ot }),
        S.append(v.add(T).add(P)).append(A),
        ye &&
          ((Ot = (x.css("filter") || "").match(/opacity=(\d+)/)) &&
            x.css("opacity", Ot[1] / 100),
          (Ot = (T.css("filter") || "").match(/opacity=(\d+)/)) &&
            T.css("opacity", Ot[1] / 100)),
        $.hide
          ? tt(S.add(x))
          : $.show && w && ((H = !0), S.add(x).fadeIn(g.fadeSpeed || 0), ge()),
        (At = (hi = (g.aspectRatio || "").split(/:/))[0] / hi[1]),
        c.add(x).unbind("mousedown", gi),
        g.disable || g.enable === !1
          ? (S.unbind("mousemove", zt).unbind("mousedown", pi),
            n(window).unbind("resize", ei))
          : ((g.enable || g.disable === !1) &&
              ((g.resizable || g.movable) && S.mousemove(zt).mousedown(pi),
              n(window).resize(ei)),
            g.persistent || c.add(x).mousedown(gi)),
        (g.enable = g.disable = void 0);
    }
    this.remove = function () {
      me({ disable: !0 }), S.add(x).remove();
    };
    function te() {
      var $ = Ft(),
        dt = document.getElementById("tempCropCanvas");
      if (!dt) {
        var dt = document.createElement("canvas");
        document.body.appendChild(dt);
      }
      dt.setAttribute("id", "tempCropCanvas"),
        dt.setAttribute("hidden", !0),
        dt.setAttribute("width", $.width),
        dt.setAttribute("height", $.height);
      var _t = dt.getContext("2d");
      return (
        _t.drawImage(p, $.x1, $.y1, $.width, $.height, 0, 0, $.width, $.height),
        dt.toDataURL("image/png", 1)
      );
    }
    function se() {
      (w = !0),
        me(
          (g = n.extend(
            {
              classPrefix: "aximgareaselect",
              movable: !0,
              parent: "body",
              resizable: !0,
              resizeMargin: 10,
              onInit: function () {},
              onOuterOverlayShown: function () {},
              onSelectStart: function () {},
              onSelectChange: function () {},
              onSelectEnd: function () {},
              onSelectCancel: function () {},
            },
            g
          ))
        ),
        S.add(x).css({ visibility: "" }),
        g.show &&
          ((H = !0),
          Mt(),
          ne(),
          S.add(x)
            .hide()
            .fadeIn(g.fadeSpeed || 0)),
        setTimeout(function () {
          g.onInit(p, Ft());
        }, 0);
    }
    function zt($) {
      var dt = Yt(Rt($)) - Q.x1,
        _t = Ut(Le($)) - Q.y1;
      Te ||
        (Mt(),
        (Te = !0),
        S.one("mouseout", function () {
          Te = !1;
        })),
        (V = ""),
        g.resizable &&
          (_t <= g.resizeMargin
            ? (V = "n")
            : _t >= Q.height - g.resizeMargin && (V = "s"),
          dt <= g.resizeMargin
            ? (V += "w")
            : dt >= Q.width - g.resizeMargin && (V += "e")),
        S.css("cursor", V ? V + "-resize" : g.movable ? "move" : ""),
        P && P.toggle();
    }
    function pi($) {
      return (
        $.which != 1 ||
          (Mt(),
          V
            ? (n("body").css("cursor", V + "-resize"),
              (B = pe(Q[/w/.test(V) ? "x2" : "x1"])),
              (q = ke(Q[/n/.test(V) ? "y2" : "y1"])),
              n(document).mousemove(Pe).one("mouseup", ve),
              S.unbind("mousemove", zt))
            : g.movable
            ? ((Z = j + Q.x1 - Rt($)),
              (pt = D + Q.y1 - Le($)),
              S.unbind("mousemove", zt),
              n(document)
                .mousemove(ti)
                .one("mouseup", function () {
                  g.onSelectEnd(p, Ft()),
                    n(document).unbind("mousemove", ti),
                    S.mousemove(zt);
                }))
            : c.mousedown($)),
        !1
      );
    }
    function Pe($) {
      return (
        (nt = /w|e|^$/.test(V) || At ? Rt($) : pe(Q.x2)),
        (J = /n|s|^$/.test(V) || At ? Le($) : ke(Q.y2)),
        Ue(),
        !1
      );
    }
    function ti($) {
      return (
        (B = s(j, l(Z + Rt($), j + R - Q.width))),
        (q = s(D, l(pt + Le($), D + W - Q.height))),
        He(B, q),
        $.preventDefault(),
        !1
      );
    }
    function ei() {
      ge(!1);
    }
    function gi($) {
      return $.which != 1 || x.is(":animated")
        ? !1
        : (Mt(),
          (Z = B = Rt($)),
          (pt = q = Le($)),
          n(document).mousemove(Je).mouseup(Re),
          !0);
    }
    function ve($) {
      n("body").css("cursor", ""),
        (g.autoHide || Q.width * Q.height == 0) &&
          tt(S.add(x), function () {
            n(this).hide();
          }),
        n(document).unbind("mousemove", Pe),
        S.mousemove(zt),
        g.onSelectEnd(p, Ft());
    }
    var Oe = function ($) {
      var dt = g.keys,
        _t,
        be,
        Ee = $.keyCode;
      if (
        ((_t =
          !isNaN(dt.alt) && ($.altKey || $.originalEvent.altKey)
            ? dt.alt
            : !isNaN(dt.ctrl) && $.ctrlKey
            ? dt.ctrl
            : !isNaN(dt.shift) && $.shiftKey
            ? dt.shift
            : isNaN(dt.arrows)
            ? 10
            : dt.arrows),
        dt.arrows == "resize" ||
          (dt.shift == "resize" && $.shiftKey) ||
          (dt.ctrl == "resize" && $.ctrlKey) ||
          (dt.alt == "resize" && ($.altKey || $.originalEvent.altKey)))
      ) {
        switch (Ee) {
          case 37:
            _t = -_t;
          case 39:
            (be = s(B, nt)), (B = l(B, nt)), (nt = s(be + _t, B)), Dt();
            break;
          case 38:
            _t = -_t;
          case 40:
            (be = s(q, J)), (q = l(q, J)), (J = s(be + _t, q)), Dt(!0);
            break;
          default:
            return;
        }
        Ue();
      } else
        switch (((B = l(B, nt)), (q = l(q, J)), Ee)) {
          case 37:
            He(s(B - _t, j), q);
            break;
          case 38:
            He(B, s(q - _t, D));
            break;
          case 39:
            He(B + l(_t, R - Yt(nt)), q);
            break;
          case 40:
            He(B, q + l(_t, W - Ut(J)));
            break;
          default:
            return;
        }
      return !1;
    };
    (this.getOptions = function () {
      return g;
    }),
      (this.setOptions = me),
      (this.getSelection = Ft),
      (this.setSelection = Qe),
      (this.cancelSelection = Re),
      (this.update = ge),
      (this.cropImage = te);
    var ye = (/msie ([\w.]+)/i.exec(Nt) || [])[1],
      mi = /opera/i.test(Nt),
      qt = /webkit/i.test(Nt) && !/chrome/i.test(Nt);
    for (Kt = c; Kt.length; )
      (a = s(a, isNaN(Kt.css("z-index")) ? a : Kt.css("z-index"))),
        Kt.css("position") == "fixed" && (rt = "fixed"),
        (Kt = Kt.parent(":not(body)"));
    (a = g.zIndex || a),
      ye && c.attr("unselectable", "on"),
      (n.axImgAreaSelect.keyPress = ye || qt ? "keydown" : "keypress"),
      mi &&
        (P = f().css({
          width: "100%",
          height: "100%",
          position: "absolute",
          zIndex: a + 2 || 2,
        })),
      S.add(x).css({
        visibility: "hidden",
        position: rt,
        overflow: "hidden",
        zIndex: a || "0",
      }),
      S.css({ zIndex: a + 2 || 2 }),
      v.add(T).css({ position: "absolute", fontSize: 0 }),
      p.complete || p.readyState == "complete" || !c.is("img")
        ? se()
        : c.one("load", se),
      !w && ye && ye >= 7 && (p.src = p.src);
  }),
    (n.fn.axImgAreaSelect = function (p) {
      return (
        (p = p || {}),
        this.each(function () {
          n(this).data("axImgAreaSelect")
            ? p.remove
              ? (n(this).data("axImgAreaSelect").remove(),
                n(this).removeData("axImgAreaSelect"))
              : n(this).data("axImgAreaSelect").setOptions(p)
            : p.remove ||
              (p.enable === void 0 && p.disable == null && (p.enable = !0),
              n(this).data("axImgAreaSelect", new n.axImgAreaSelect(this, p)));
        }),
        p.instance ? n(this).data("axImgAreaSelect") : this
      );
    });
};
var Zr = { exports: {} };
(function (n, e) {
  (function (s, l) {
    n.exports = l();
  })(Kr, function () {
    return (function (s) {
      function l(f) {
        if (r[f]) return r[f].exports;
        var p = (r[f] = { i: f, l: !1, exports: {} });
        return s[f].call(p.exports, p, p.exports, l), (p.l = !0), p.exports;
      }
      var r = {};
      return (
        (l.m = s),
        (l.c = r),
        (l.i = function (f) {
          return f;
        }),
        (l.d = function (f, p, g) {
          l.o(f, p) ||
            Object.defineProperty(f, p, {
              configurable: !1,
              enumerable: !0,
              get: g,
            });
        }),
        (l.n = function (f) {
          var p =
            f && f.__esModule
              ? function () {
                  return f.default;
                }
              : function () {
                  return f;
                };
          return l.d(p, "a", p), p;
        }),
        (l.o = function (f, p) {
          return Object.prototype.hasOwnProperty.call(f, p);
        }),
        (l.p = "/"),
        l((l.s = 89))
      );
    })([
      function (s, l) {
        s.exports = function (r) {
          try {
            return !!r();
          } catch {
            return !0;
          }
        };
      },
      function (s, l, r) {
        var f = r(35),
          p = Function.prototype,
          g = p.call,
          c = f && p.bind.bind(g, g);
        s.exports = f
          ? c
          : function (w) {
              return function () {
                return g.apply(w, arguments);
              };
            };
      },
      function (s, l, r) {
        var f = r(59),
          p = f.all;
        s.exports = f.IS_HTMLDDA
          ? function (g) {
              return typeof g == "function" || g === p;
            }
          : function (g) {
              return typeof g == "function";
            };
      },
      function (s, l, r) {
        var f = r(4),
          p = r(43).f,
          g = r(30),
          c = r(11),
          w = r(33),
          S = r(95),
          v = r(66);
        s.exports = function (T, x) {
          var A,
            P,
            j,
            D,
            K,
            R = T.target,
            W = T.global,
            Y = T.stat;
          if ((A = W ? f : Y ? f[R] || w(R, {}) : (f[R] || {}).prototype))
            for (P in x) {
              if (
                ((D = x[P]),
                T.dontCallGetSet
                  ? ((K = p(A, P)), (j = K && K.value))
                  : (j = A[P]),
                !v(W ? P : R + (Y ? "." : "#") + P, T.forced) && j !== void 0)
              ) {
                if (typeof D == typeof j) continue;
                S(D, j);
              }
              (T.sham || (j && j.sham)) && g(D, "sham", !0), c(A, P, D, T);
            }
        };
      },
      function (s, l, r) {
        (function (f) {
          var p = function (g) {
            return g && g.Math == Math && g;
          };
          s.exports =
            p(typeof globalThis == "object" && globalThis) ||
            p(typeof window == "object" && window) ||
            p(typeof self == "object" && self) ||
            p(typeof f == "object" && f) ||
            (function () {
              return this;
            })() ||
            Function("return this")();
        }).call(l, r(139));
      },
      function (s, l, r) {
        var f = r(0);
        s.exports = !f(function () {
          return (
            Object.defineProperty({}, 1, {
              get: function () {
                return 7;
              },
            })[1] != 7
          );
        });
      },
      function (s, l, r) {
        var f = r(8),
          p = String,
          g = TypeError;
        s.exports = function (c) {
          if (f(c)) return c;
          throw g(p(c) + " is not an object");
        };
      },
      function (s, l, r) {
        var f = r(1),
          p = r(14),
          g = f({}.hasOwnProperty);
        s.exports =
          Object.hasOwn ||
          function (c, w) {
            return g(p(c), w);
          };
      },
      function (s, l, r) {
        var f = r(2),
          p = r(59),
          g = p.all;
        s.exports = p.IS_HTMLDDA
          ? function (c) {
              return typeof c == "object" ? c !== null : f(c) || c === g;
            }
          : function (c) {
              return typeof c == "object" ? c !== null : f(c);
            };
      },
      function (s, l, r) {
        var f = r(4),
          p = r(47),
          g = r(7),
          c = r(75),
          w = r(72),
          S = r(76),
          v = p("wks"),
          T = f.Symbol,
          x = T && T.for,
          A = S ? T : (T && T.withoutSetter) || c;
        s.exports = function (P) {
          if (!g(v, P) || (!w && typeof v[P] != "string")) {
            var j = "Symbol." + P;
            w && g(T, P) ? (v[P] = T[P]) : (v[P] = S && x ? x(j) : A(j));
          }
          return v[P];
        };
      },
      function (s, l, r) {
        var f = r(123);
        s.exports = function (p) {
          return f(p.length);
        };
      },
      function (s, l, r) {
        var f = r(2),
          p = r(13),
          g = r(104),
          c = r(33);
        s.exports = function (w, S, v, T) {
          T || (T = {});
          var x = T.enumerable,
            A = T.name !== void 0 ? T.name : S;
          if ((f(v) && g(v, A, T), T.global)) x ? (w[S] = v) : c(S, v);
          else {
            try {
              T.unsafe ? w[S] && (x = !0) : delete w[S];
            } catch {}
            x
              ? (w[S] = v)
              : p.f(w, S, {
                  value: v,
                  enumerable: !1,
                  configurable: !T.nonConfigurable,
                  writable: !T.nonWritable,
                });
          }
          return w;
        };
      },
      function (s, l, r) {
        var f = r(35),
          p = Function.prototype.call;
        s.exports = f
          ? p.bind(p)
          : function () {
              return p.apply(p, arguments);
            };
      },
      function (s, l, r) {
        var f = r(5),
          p = r(62),
          g = r(77),
          c = r(6),
          w = r(50),
          S = TypeError,
          v = Object.defineProperty,
          T = Object.getOwnPropertyDescriptor;
        l.f = f
          ? g
            ? function (x, A, P) {
                if (
                  (c(x),
                  (A = w(A)),
                  c(P),
                  typeof x == "function" &&
                    A === "prototype" &&
                    "value" in P &&
                    "writable" in P &&
                    !P.writable)
                ) {
                  var j = T(x, A);
                  j &&
                    j.writable &&
                    ((x[A] = P.value),
                    (P = {
                      configurable:
                        "configurable" in P ? P.configurable : j.configurable,
                      enumerable:
                        "enumerable" in P ? P.enumerable : j.enumerable,
                      writable: !1,
                    }));
                }
                return v(x, A, P);
              }
            : v
          : function (x, A, P) {
              if ((c(x), (A = w(A)), c(P), p))
                try {
                  return v(x, A, P);
                } catch {}
              if ("get" in P || "set" in P) throw S("Accessors not supported");
              return "value" in P && (x[A] = P.value), x;
            };
      },
      function (s, l, r) {
        var f = r(24),
          p = Object;
        s.exports = function (g) {
          return p(f(g));
        };
      },
      function (s, l, r) {
        var f = r(1),
          p = f({}.toString),
          g = f("".slice);
        s.exports = function (c) {
          return g(p(c), 8, -1);
        };
      },
      function (s, l, r) {
        var f = r(0),
          p = r(9),
          g = r(23),
          c = p("species");
        s.exports = function (w) {
          return (
            g >= 51 ||
            !f(function () {
              var S = [],
                v = (S.constructor = {});
              return (
                (v[c] = function () {
                  return { foo: 1 };
                }),
                S[w](Boolean).foo !== 1
              );
            })
          );
        };
      },
      function (s, l, r) {
        var f = r(4),
          p = r(2),
          g = function (c) {
            return p(c) ? c : void 0;
          };
        s.exports = function (c, w) {
          return arguments.length < 2 ? g(f[c]) : f[c] && f[c][w];
        };
      },
      function (s, l, r) {
        var f = r(15);
        s.exports =
          Array.isArray ||
          function (p) {
            return f(p) == "Array";
          };
      },
      function (s, l, r) {
        var f = r(39),
          p = r(24);
        s.exports = function (g) {
          return f(p(g));
        };
      },
      function (s, l, r) {
        var f = r(29),
          p = String;
        s.exports = function (g) {
          if (f(g) === "Symbol")
            throw TypeError("Cannot convert a Symbol value to a string");
          return p(g);
        };
      },
      function (s, l, r) {
        var f = r(100),
          p = r(1),
          g = r(39),
          c = r(14),
          w = r(10),
          S = r(28),
          v = p([].push),
          T = function (x) {
            var A = x == 1,
              P = x == 2,
              j = x == 3,
              D = x == 4,
              K = x == 6,
              R = x == 7,
              W = x == 5 || K;
            return function (Y, F, a, rt) {
              for (
                var Z,
                  pt,
                  ut = c(Y),
                  ft = g(ut),
                  V = f(F, a),
                  xt = w(ft),
                  Tt = 0,
                  Et = rt || S,
                  ot = A ? Et(Y, xt) : P || R ? Et(Y, 0) : void 0;
                xt > Tt;
                Tt++
              )
                if ((W || Tt in ft) && ((Z = ft[Tt]), (pt = V(Z, Tt, ut)), x))
                  if (A) ot[Tt] = pt;
                  else if (pt)
                    switch (x) {
                      case 3:
                        return !0;
                      case 5:
                        return Z;
                      case 6:
                        return Tt;
                      case 2:
                        v(ot, Z);
                    }
                  else
                    switch (x) {
                      case 4:
                        return !1;
                      case 7:
                        v(ot, Z);
                    }
              return K ? -1 : j || D ? D : ot;
            };
          };
        s.exports = {
          forEach: T(0),
          map: T(1),
          filter: T(2),
          some: T(3),
          every: T(4),
          find: T(5),
          findIndex: T(6),
          filterReject: T(7),
        };
      },
      function (s, l) {
        var r = TypeError;
        s.exports = function (f) {
          if (f > 9007199254740991) throw r("Maximum allowed index exceeded");
          return f;
        };
      },
      function (s, l, r) {
        var f,
          p,
          g = r(4),
          c = r(97),
          w = g.process,
          S = g.Deno,
          v = (w && w.versions) || (S && S.version),
          T = v && v.v8;
        T &&
          ((f = T.split(".")), (p = f[0] > 0 && f[0] < 4 ? 1 : +(f[0] + f[1]))),
          !p &&
            c &&
            (!(f = c.match(/Edge\/(\d+)/)) || f[1] >= 74) &&
            (f = c.match(/Chrome\/(\d+)/)) &&
            (p = +f[1]),
          (s.exports = p);
      },
      function (s, l, r) {
        var f = r(40),
          p = TypeError;
        s.exports = function (g) {
          if (f(g)) throw p("Can't call method on " + g);
          return g;
        };
      },
      function (s, l, r) {
        var f = r(2),
          p = r(74),
          g = TypeError;
        s.exports = function (c) {
          if (f(c)) return c;
          throw g(p(c) + " is not a function");
        };
      },
      function (s, l, r) {
        var f = r(0);
        s.exports = function (p, g) {
          var c = [][p];
          return (
            !!c &&
            f(function () {
              c.call(
                null,
                g ||
                  function () {
                    return 1;
                  },
                1
              );
            })
          );
        };
      },
      function (s, l, r) {
        var f = r(5),
          p = r(18),
          g = TypeError,
          c = Object.getOwnPropertyDescriptor,
          w =
            f &&
            !(function () {
              if (this !== void 0) return !0;
              try {
                Object.defineProperty([], "length", {
                  writable: !1,
                }).length = 1;
              } catch (S) {
                return S instanceof TypeError;
              }
            })();
        s.exports = w
          ? function (S, v) {
              if (p(S) && !c(S, "length").writable)
                throw g("Cannot set read only .length");
              return (S.length = v);
            }
          : function (S, v) {
              return (S.length = v);
            };
      },
      function (s, l, r) {
        var f = r(94);
        s.exports = function (p, g) {
          return new (f(p))(g === 0 ? 0 : g);
        };
      },
      function (s, l, r) {
        var f = r(51),
          p = r(2),
          g = r(15),
          c = r(9),
          w = c("toStringTag"),
          S = Object,
          v =
            g(
              (function () {
                return arguments;
              })()
            ) == "Arguments",
          T = function (x, A) {
            try {
              return x[A];
            } catch {}
          };
        s.exports = f
          ? g
          : function (x) {
              var A, P, j;
              return x === void 0
                ? "Undefined"
                : x === null
                ? "Null"
                : typeof (P = T((A = S(x)), w)) == "string"
                ? P
                : v
                ? g(A)
                : (j = g(A)) == "Object" && p(A.callee)
                ? "Arguments"
                : j;
            };
      },
      function (s, l, r) {
        var f = r(5),
          p = r(13),
          g = r(31);
        s.exports = f
          ? function (c, w, S) {
              return p.f(c, w, g(1, S));
            }
          : function (c, w, S) {
              return (c[w] = S), c;
            };
      },
      function (s, l) {
        s.exports = function (r, f) {
          return {
            enumerable: !(1 & r),
            configurable: !(2 & r),
            writable: !(4 & r),
            value: f,
          };
        };
      },
      function (s, l, r) {
        var f = r(50),
          p = r(13),
          g = r(31);
        s.exports = function (c, w, S) {
          var v = f(w);
          v in c ? p.f(c, v, g(0, S)) : (c[v] = S);
        };
      },
      function (s, l, r) {
        var f = r(4),
          p = Object.defineProperty;
        s.exports = function (g, c) {
          try {
            p(f, g, { value: c, configurable: !0, writable: !0 });
          } catch {
            f[g] = c;
          }
          return c;
        };
      },
      function (s, l) {
        s.exports = [
          "constructor",
          "hasOwnProperty",
          "isPrototypeOf",
          "propertyIsEnumerable",
          "toLocaleString",
          "toString",
          "valueOf",
        ];
      },
      function (s, l, r) {
        var f = r(0);
        s.exports = !f(function () {
          var p = function () {}.bind();
          return typeof p != "function" || p.hasOwnProperty("prototype");
        });
      },
      function (s, l, r) {
        var f = r(5),
          p = r(7),
          g = Function.prototype,
          c = f && Object.getOwnPropertyDescriptor,
          w = p(g, "name"),
          S = w && function () {}.name === "something",
          v = w && (!f || (f && c(g, "name").configurable));
        s.exports = { EXISTS: w, PROPER: S, CONFIGURABLE: v };
      },
      function (s, l, r) {
        var f = r(15),
          p = r(1);
        s.exports = function (g) {
          if (f(g) === "Function") return p(g);
        };
      },
      function (s, l) {
        s.exports = {};
      },
      function (s, l, r) {
        var f = r(1),
          p = r(0),
          g = r(15),
          c = Object,
          w = f("".split);
        s.exports = p(function () {
          return !c("z").propertyIsEnumerable(0);
        })
          ? function (S) {
              return g(S) == "String" ? w(S, "") : c(S);
            }
          : c;
      },
      function (s, l) {
        s.exports = function (r) {
          return r == null;
        };
      },
      function (s, l, r) {
        var f = r(17),
          p = r(2),
          g = r(44),
          c = r(76),
          w = Object;
        s.exports = c
          ? function (S) {
              return typeof S == "symbol";
            }
          : function (S) {
              var v = f("Symbol");
              return p(v) && g(v.prototype, w(S));
            };
      },
      function (s, l, r) {
        var f,
          p = r(6),
          g = r(107),
          c = r(34),
          w = r(38),
          S = r(101),
          v = r(60),
          T = r(70),
          x = T("IE_PROTO"),
          A = function () {},
          P = function (R) {
            return "<script>" + R + "</script>";
          },
          j = function (R) {
            R.write(P("")), R.close();
            var W = R.parentWindow.Object;
            return (R = null), W;
          },
          D = function () {
            var R,
              W = v("iframe");
            return (
              (W.style.display = "none"),
              S.appendChild(W),
              (W.src = "javascript:"),
              (R = W.contentWindow.document),
              R.open(),
              R.write(P("document.F=Object")),
              R.close(),
              R.F
            );
          },
          K = function () {
            try {
              f = new ActiveXObject("htmlfile");
            } catch {}
            K =
              typeof document < "u"
                ? document.domain && f
                  ? j(f)
                  : D()
                : j(f);
            for (var R = c.length; R--; ) delete K.prototype[c[R]];
            return K();
          };
        (w[x] = !0),
          (s.exports =
            Object.create ||
            function (R, W) {
              var Y;
              return (
                R !== null
                  ? ((A.prototype = p(R)),
                    (Y = new A()),
                    (A.prototype = null),
                    (Y[x] = R))
                  : (Y = K()),
                W === void 0 ? Y : g.f(Y, W)
              );
            });
      },
      function (s, l, r) {
        var f = r(5),
          p = r(12),
          g = r(110),
          c = r(31),
          w = r(19),
          S = r(50),
          v = r(7),
          T = r(62),
          x = Object.getOwnPropertyDescriptor;
        l.f = f
          ? x
          : function (A, P) {
              if (((A = w(A)), (P = S(P)), T))
                try {
                  return x(A, P);
                } catch {}
              if (v(A, P)) return c(!p(g.f, A, P), A[P]);
            };
      },
      function (s, l, r) {
        var f = r(1);
        s.exports = f({}.isPrototypeOf);
      },
      function (s, l, r) {
        var f = r(12),
          p = r(1),
          g = r(20),
          c = r(69),
          w = r(117),
          S = r(47),
          v = r(42),
          T = r(64).get,
          x = r(118),
          A = r(119),
          P = S("native-string-replace", String.prototype.replace),
          j = RegExp.prototype.exec,
          D = j,
          K = p("".charAt),
          R = p("".indexOf),
          W = p("".replace),
          Y = p("".slice),
          F = (function () {
            var Z = /a/,
              pt = /b*/g;
            return (
              f(j, Z, "a"),
              f(j, pt, "a"),
              Z.lastIndex !== 0 || pt.lastIndex !== 0
            );
          })(),
          a = w.BROKEN_CARET,
          rt = /()??/.exec("")[1] !== void 0;
        (F || rt || a || x || A) &&
          (D = function (Z) {
            var pt,
              ut,
              ft,
              V,
              xt,
              Tt,
              Et,
              ot = this,
              At = T(ot),
              H = g(Z),
              B = At.raw;
            if (B)
              return (
                (B.lastIndex = ot.lastIndex),
                (pt = f(D, B, H)),
                (ot.lastIndex = B.lastIndex),
                pt
              );
            var q = At.groups,
              nt = a && ot.sticky,
              J = f(c, ot),
              Q = ot.source,
              yt = 0,
              Nt = H;
            if (
              (nt &&
                ((J = W(J, "y", "")),
                R(J, "g") === -1 && (J += "g"),
                (Nt = Y(H, ot.lastIndex)),
                ot.lastIndex > 0 &&
                  (!ot.multiline ||
                    (ot.multiline &&
                      K(H, ot.lastIndex - 1) !==
                        `
`)) &&
                  ((Q = "(?: " + Q + ")"), (Nt = " " + Nt), yt++),
                (ut = new RegExp("^(?:" + Q + ")", J))),
              rt && (ut = new RegExp("^" + Q + "$(?!\\s)", J)),
              F && (ft = ot.lastIndex),
              (V = f(j, nt ? ut : ot, Nt)),
              nt
                ? V
                  ? ((V.input = Y(V.input, yt)),
                    (V[0] = Y(V[0], yt)),
                    (V.index = ot.lastIndex),
                    (ot.lastIndex += V[0].length))
                  : (ot.lastIndex = 0)
                : F &&
                  V &&
                  (ot.lastIndex = ot.global ? V.index + V[0].length : ft),
              rt &&
                V &&
                V.length > 1 &&
                f(P, V[0], ut, function () {
                  for (xt = 1; xt < arguments.length - 2; xt++)
                    arguments[xt] === void 0 && (V[xt] = void 0);
                }),
              V && q)
            )
              for (V.groups = Tt = v(null), xt = 0; xt < q.length; xt++)
                (Et = q[xt]), (Tt[Et[0]] = V[Et[1]]);
            return V;
          }),
          (s.exports = D);
      },
      function (s, l, r) {
        var f = r(4),
          p = r(33),
          g = f["__core-js_shared__"] || p("__core-js_shared__", {});
        s.exports = g;
      },
      function (s, l, r) {
        var f = r(103),
          p = r(46);
        (s.exports = function (g, c) {
          return p[g] || (p[g] = c !== void 0 ? c : {});
        })("versions", []).push({
          version: "3.26.1",
          mode: f ? "pure" : "global",
          copyright: "© 2014-2022 Denis Pushkarev (zloirock.ru)",
          license: "https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",
          source: "https://github.com/zloirock/core-js",
        });
      },
      function (s, l, r) {
        var f = r(49),
          p = Math.max,
          g = Math.min;
        s.exports = function (c, w) {
          var S = f(c);
          return S < 0 ? p(S + w, 0) : g(S, w);
        };
      },
      function (s, l, r) {
        var f = r(105);
        s.exports = function (p) {
          var g = +p;
          return g !== g || g === 0 ? 0 : f(g);
        };
      },
      function (s, l, r) {
        var f = r(73),
          p = r(41);
        s.exports = function (g) {
          var c = f(g, "string");
          return p(c) ? c : c + "";
        };
      },
      function (s, l, r) {
        var f = r(9),
          p = f("toStringTag"),
          g = {};
        (g[p] = "z"), (s.exports = String(g) === "[object z]");
      },
      function (s, l, r) {
        var f = r(5),
          p = r(4),
          g = r(1),
          c = r(66),
          w = r(11),
          S = r(7),
          v = r(102),
          T = r(44),
          x = r(41),
          A = r(73),
          P = r(0),
          j = r(67).f,
          D = r(43).f,
          K = r(13).f,
          R = r(122),
          W = r(71).trim,
          Y = p.Number,
          F = Y.prototype,
          a = p.TypeError,
          rt = g("".slice),
          Z = g("".charCodeAt),
          pt = function (Et) {
            var ot = A(Et, "number");
            return typeof ot == "bigint" ? ot : ut(ot);
          },
          ut = function (Et) {
            var ot,
              At,
              H,
              B,
              q,
              nt,
              J,
              Q,
              yt = A(Et, "number");
            if (x(yt)) throw a("Cannot convert a Symbol value to a number");
            if (typeof yt == "string" && yt.length > 2) {
              if (((yt = W(yt)), (ot = Z(yt, 0)) === 43 || ot === 45)) {
                if ((At = Z(yt, 2)) === 88 || At === 120) return NaN;
              } else if (ot === 48) {
                switch (Z(yt, 1)) {
                  case 66:
                  case 98:
                    (H = 2), (B = 49);
                    break;
                  case 79:
                  case 111:
                    (H = 8), (B = 55);
                    break;
                  default:
                    return +yt;
                }
                for (q = rt(yt, 2), nt = q.length, J = 0; J < nt; J++)
                  if ((Q = Z(q, J)) < 48 || Q > B) return NaN;
                return parseInt(q, H);
              }
            }
            return +yt;
          };
        if (c("Number", !Y(" 0o1") || !Y("0b1") || Y("+0x1"))) {
          for (
            var ft,
              V = function (Et) {
                var ot = arguments.length < 1 ? 0 : Y(pt(Et)),
                  At = this;
                return T(F, At) &&
                  P(function () {
                    R(At);
                  })
                  ? v(Object(ot), At, V)
                  : ot;
              },
              xt = f
                ? j(Y)
                : "MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(
                    ","
                  ),
              Tt = 0;
            xt.length > Tt;
            Tt++
          )
            S(Y, (ft = xt[Tt])) && !S(V, ft) && K(V, ft, D(Y, ft));
          (V.prototype = F),
            (F.constructor = V),
            w(p, "Number", V, { constructor: !0 });
        }
      },
      function (s, l, r) {
        var f = r(3),
          p = r(45);
        f({ target: "RegExp", proto: !0, forced: /./.exec !== p }, { exec: p });
      },
      function (s, l, r) {
        function f(H) {
          return H !== 0 && (!(!Array.isArray(H) || H.length !== 0) || !H);
        }
        function p(H) {
          return function () {
            return !H.apply(void 0, arguments);
          };
        }
        function g(H, B) {
          return (
            H === void 0 && (H = "undefined"),
            H === null && (H = "null"),
            H === !1 && (H = "false"),
            H.toString().toLowerCase().indexOf(B.trim()) !== -1
          );
        }
        function c(H, B, q, nt) {
          return H.filter(function (J) {
            return g(nt(J, q), B);
          });
        }
        function w(H) {
          return H.filter(function (B) {
            return !B.$isLabel;
          });
        }
        function S(H, B) {
          return function (q) {
            return q.reduce(function (nt, J) {
              return J[H] && J[H].length
                ? (nt.push({ $groupLabel: J[B], $isLabel: !0 }),
                  nt.concat(J[H]))
                : nt;
            }, []);
          };
        }
        function v(H, B, q, nt, J) {
          return function (Q) {
            return Q.map(function (yt) {
              var Nt;
              if (!yt[q])
                return (
                  console.warn(
                    "Options passed to vue-multiselect do not contain groups, despite the config."
                  ),
                  []
                );
              var Kt = c(yt[q], H, B, J);
              return Kt.length
                ? ((Nt = {}), r.i(x.a)(Nt, nt, yt[nt]), r.i(x.a)(Nt, q, Kt), Nt)
                : [];
            });
          };
        }
        var T = r(88),
          x = r(87),
          A = r(129),
          P = (r.n(A), r(82)),
          j = (r.n(P), r(81)),
          D = (r.n(j), r(83)),
          K = (r.n(D), r(84)),
          R = (r.n(K), r(128)),
          W = (r.n(R), r(135)),
          Y = (r.n(W), r(127)),
          F = (r.n(Y), r(132)),
          a = (r.n(F), r(131)),
          rt = (r.n(a), r(125)),
          Z = (r.n(rt), r(130)),
          pt = (r.n(Z), r(52)),
          ut = (r.n(pt), r(53)),
          ft = (r.n(ut), r(85)),
          V = (r.n(ft), r(134)),
          xt = (r.n(V), r(80)),
          Tt = (r.n(xt), r(79)),
          Et = (r.n(Tt), r(133)),
          ot = (r.n(Et), r(126)),
          At =
            (r.n(ot),
            function () {
              for (
                var H = arguments.length, B = new Array(H), q = 0;
                q < H;
                q++
              )
                B[q] = arguments[q];
              return function (nt) {
                return B.reduce(function (J, Q) {
                  return Q(J);
                }, nt);
              };
            });
        l.a = {
          data: function () {
            return {
              search: "",
              isOpen: !1,
              preferredOpenDirection: "below",
              optimizedHeight: this.maxHeight,
            };
          },
          props: {
            internalSearch: { type: Boolean, default: !0 },
            options: { type: Array, required: !0 },
            multiple: { type: Boolean, default: !1 },
            value: {
              type: null,
              default: function () {
                return [];
              },
            },
            trackBy: { type: String },
            label: { type: String },
            searchable: { type: Boolean, default: !0 },
            clearOnSelect: { type: Boolean, default: !0 },
            hideSelected: { type: Boolean, default: !1 },
            placeholder: { type: String, default: "Select option" },
            allowEmpty: { type: Boolean, default: !0 },
            resetAfter: { type: Boolean, default: !1 },
            closeOnSelect: { type: Boolean, default: !0 },
            customLabel: {
              type: Function,
              default: function (H, B) {
                return f(H) ? "" : B ? H[B] : H;
              },
            },
            taggable: { type: Boolean, default: !1 },
            tagPlaceholder: {
              type: String,
              default: "Press enter to create a tag",
            },
            tagPosition: { type: String, default: "top" },
            max: { type: [Number, Boolean], default: !1 },
            id: { default: null },
            optionsLimit: { type: Number, default: 1e3 },
            groupValues: { type: String },
            groupLabel: { type: String },
            groupSelect: { type: Boolean, default: !1 },
            blockKeys: {
              type: Array,
              default: function () {
                return [];
              },
            },
            preserveSearch: { type: Boolean, default: !1 },
            preselectFirst: { type: Boolean, default: !1 },
            preventAutofocus: { type: Boolean, default: !1 },
          },
          mounted: function () {
            !this.multiple &&
              this.max &&
              console.warn(
                "[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."
              ),
              this.preselectFirst &&
                !this.internalValue.length &&
                this.options.length &&
                this.select(this.filteredOptions[0]);
          },
          computed: {
            internalValue: function () {
              return this.value || this.value === 0
                ? Array.isArray(this.value)
                  ? this.value
                  : [this.value]
                : [];
            },
            filteredOptions: function () {
              var H = this.search || "",
                B = H.toLowerCase().trim(),
                q = this.options.concat();
              return (
                (q = this.internalSearch
                  ? this.groupValues
                    ? this.filterAndFlat(q, B, this.label)
                    : c(q, B, this.label, this.customLabel)
                  : this.groupValues
                  ? S(this.groupValues, this.groupLabel)(q)
                  : q),
                (q = this.hideSelected ? q.filter(p(this.isSelected)) : q),
                this.taggable &&
                  B.length &&
                  !this.isExistingOption(B) &&
                  (this.tagPosition === "bottom"
                    ? q.push({ isTag: !0, label: H })
                    : q.unshift({ isTag: !0, label: H })),
                q.slice(0, this.optionsLimit)
              );
            },
            valueKeys: function () {
              var H = this;
              return this.trackBy
                ? this.internalValue.map(function (B) {
                    return B[H.trackBy];
                  })
                : this.internalValue;
            },
            optionKeys: function () {
              var H = this;
              return (
                this.groupValues
                  ? this.flatAndStrip(this.options)
                  : this.options
              ).map(function (B) {
                return H.customLabel(B, H.label).toString().toLowerCase();
              });
            },
            currentOptionLabel: function () {
              return this.multiple
                ? this.searchable
                  ? ""
                  : this.placeholder
                : this.internalValue.length
                ? this.getOptionLabel(this.internalValue[0])
                : this.searchable
                ? ""
                : this.placeholder;
            },
          },
          watch: {
            internalValue: function () {
              this.resetAfter &&
                this.internalValue.length &&
                ((this.search = ""),
                this.$emit("input", this.multiple ? [] : null));
            },
            search: function () {
              this.$emit("search-change", this.search, this.id);
            },
          },
          methods: {
            getValue: function () {
              return this.multiple
                ? this.internalValue
                : this.internalValue.length === 0
                ? null
                : this.internalValue[0];
            },
            filterAndFlat: function (H, B, q) {
              return At(
                v(B, q, this.groupValues, this.groupLabel, this.customLabel),
                S(this.groupValues, this.groupLabel)
              )(H);
            },
            flatAndStrip: function (H) {
              return At(S(this.groupValues, this.groupLabel), w)(H);
            },
            updateSearch: function (H) {
              this.search = H;
            },
            isExistingOption: function (H) {
              return !!this.options && this.optionKeys.indexOf(H) > -1;
            },
            isSelected: function (H) {
              var B = this.trackBy ? H[this.trackBy] : H;
              return this.valueKeys.indexOf(B) > -1;
            },
            isOptionDisabled: function (H) {
              return !!H.$isDisabled;
            },
            getOptionLabel: function (H) {
              if (f(H)) return "";
              if (H.isTag) return H.label;
              if (H.$isLabel) return H.$groupLabel;
              var B = this.customLabel(H, this.label);
              return f(B) ? "" : B;
            },
            select: function (H, B) {
              if (H.$isLabel && this.groupSelect)
                return void this.selectGroup(H);
              if (
                !(
                  this.blockKeys.indexOf(B) !== -1 ||
                  this.disabled ||
                  H.$isDisabled ||
                  H.$isLabel
                ) &&
                (!this.max ||
                  !this.multiple ||
                  this.internalValue.length !== this.max) &&
                (B !== "Tab" || this.pointerDirty)
              ) {
                if (H.isTag)
                  this.$emit("tag", H.label, this.id),
                    (this.search = ""),
                    this.closeOnSelect && !this.multiple && this.deactivate();
                else {
                  if (this.isSelected(H))
                    return void (B !== "Tab" && this.removeElement(H));
                  this.multiple
                    ? this.$emit(
                        "input",
                        this.internalValue.concat([H]),
                        this.id
                      )
                    : this.$emit("input", H, this.id),
                    this.$emit("select", H, this.id),
                    this.clearOnSelect && (this.search = "");
                }
                this.closeOnSelect && this.deactivate();
              }
            },
            selectGroup: function (H) {
              var B = this,
                q = this.options.find(function (yt) {
                  return yt[B.groupLabel] === H.$groupLabel;
                });
              if (q) {
                if (this.wholeGroupSelected(q)) {
                  this.$emit("remove", q[this.groupValues], this.id);
                  var nt = this.trackBy
                      ? q[this.groupValues].map(function (yt) {
                          return yt[B.trackBy];
                        })
                      : q[this.groupValues],
                    J = this.internalValue.filter(function (yt) {
                      return nt.indexOf(B.trackBy ? yt[B.trackBy] : yt) === -1;
                    });
                  this.$emit("input", J, this.id);
                } else {
                  var Q = q[this.groupValues].filter(function (yt) {
                    return !(B.isOptionDisabled(yt) || B.isSelected(yt));
                  });
                  this.max && Q.splice(this.max - this.internalValue.length),
                    this.$emit("select", Q, this.id),
                    this.$emit("input", this.internalValue.concat(Q), this.id);
                }
                this.closeOnSelect && this.deactivate();
              }
            },
            wholeGroupSelected: function (H) {
              var B = this;
              return H[this.groupValues].every(function (q) {
                return B.isSelected(q) || B.isOptionDisabled(q);
              });
            },
            wholeGroupDisabled: function (H) {
              return H[this.groupValues].every(this.isOptionDisabled);
            },
            removeElement: function (H) {
              var B =
                !(arguments.length > 1 && arguments[1] !== void 0) ||
                arguments[1];
              if (!this.disabled && !H.$isDisabled) {
                if (!this.allowEmpty && this.internalValue.length <= 1)
                  return void this.deactivate();
                var q =
                  r.i(T.a)(H) === "object"
                    ? this.valueKeys.indexOf(H[this.trackBy])
                    : this.valueKeys.indexOf(H);
                if (this.multiple) {
                  var nt = this.internalValue
                    .slice(0, q)
                    .concat(this.internalValue.slice(q + 1));
                  this.$emit("input", nt, this.id);
                } else this.$emit("input", null, this.id);
                this.$emit("remove", H, this.id),
                  this.closeOnSelect && B && this.deactivate();
              }
            },
            removeLastElement: function () {
              this.blockKeys.indexOf("Delete") === -1 &&
                this.search.length === 0 &&
                Array.isArray(this.internalValue) &&
                this.internalValue.length &&
                this.removeElement(
                  this.internalValue[this.internalValue.length - 1],
                  !1
                );
            },
            activate: function () {
              var H = this;
              this.isOpen ||
                this.disabled ||
                (this.adjustPosition(),
                this.groupValues &&
                  this.pointer === 0 &&
                  this.filteredOptions.length &&
                  (this.pointer = 1),
                (this.isOpen = !0),
                this.searchable
                  ? (this.preserveSearch || (this.search = ""),
                    this.preventAutofocus ||
                      this.$nextTick(function () {
                        return H.$refs.search && H.$refs.search.focus();
                      }))
                  : this.preventAutofocus ||
                    (this.$el !== void 0 && this.$el.focus()),
                this.$emit("open", this.id));
            },
            deactivate: function () {
              this.isOpen &&
                ((this.isOpen = !1),
                this.searchable
                  ? this.$refs.search !== null &&
                    this.$refs.search !== void 0 &&
                    this.$refs.search.blur()
                  : this.$el !== void 0 && this.$el.blur(),
                this.preserveSearch || (this.search = ""),
                this.$emit("close", this.getValue(), this.id));
            },
            toggle: function () {
              this.isOpen ? this.deactivate() : this.activate();
            },
            adjustPosition: function () {
              if (typeof window < "u") {
                var H = this.$el.getBoundingClientRect().top,
                  B =
                    window.innerHeight -
                    this.$el.getBoundingClientRect().bottom;
                B > this.maxHeight ||
                B > H ||
                this.openDirection === "below" ||
                this.openDirection === "bottom"
                  ? ((this.preferredOpenDirection = "below"),
                    (this.optimizedHeight = Math.min(B - 40, this.maxHeight)))
                  : ((this.preferredOpenDirection = "above"),
                    (this.optimizedHeight = Math.min(H - 40, this.maxHeight)));
              }
            },
          },
        };
      },
      function (s, l, r) {
        var f = r(52),
          p = (r.n(f), r(53)),
          g = (r.n(p), r(85)),
          c = (r.n(g), r(82)),
          w = (r.n(c), r(81)),
          S = (r.n(w), r(83)),
          v = (r.n(S), r(84)),
          T = (r.n(v), r(79));
        r.n(T),
          (l.a = {
            data: function () {
              return { pointer: 0, pointerDirty: !1 };
            },
            props: {
              showPointer: { type: Boolean, default: !0 },
              optionHeight: { type: Number, default: 40 },
            },
            computed: {
              pointerPosition: function () {
                return this.pointer * this.optionHeight;
              },
              visibleElements: function () {
                return this.optimizedHeight / this.optionHeight;
              },
            },
            watch: {
              filteredOptions: function () {
                this.pointerAdjust();
              },
              isOpen: function () {
                this.pointerDirty = !1;
              },
              pointer: function () {
                this.$refs.search &&
                  this.$refs.search.setAttribute(
                    "aria-activedescendant",
                    this.id + "-" + this.pointer.toString()
                  );
              },
            },
            methods: {
              optionHighlight: function (x, A) {
                return {
                  "multiselect__option--highlight":
                    x === this.pointer && this.showPointer,
                  "multiselect__option--selected": this.isSelected(A),
                };
              },
              groupHighlight: function (x, A) {
                var P = this;
                if (!this.groupSelect)
                  return [
                    "multiselect__option--disabled",
                    { "multiselect__option--group": A.$isLabel },
                  ];
                var j = this.options.find(function (D) {
                  return D[P.groupLabel] === A.$groupLabel;
                });
                return j && !this.wholeGroupDisabled(j)
                  ? [
                      "multiselect__option--group",
                      {
                        "multiselect__option--highlight":
                          x === this.pointer && this.showPointer,
                      },
                      {
                        "multiselect__option--group-selected":
                          this.wholeGroupSelected(j),
                      },
                    ]
                  : "multiselect__option--disabled";
              },
              addPointerElement: function () {
                var x =
                    arguments.length > 0 && arguments[0] !== void 0
                      ? arguments[0]
                      : "Enter",
                  A = x.key;
                this.filteredOptions.length > 0 &&
                  this.select(this.filteredOptions[this.pointer], A),
                  this.pointerReset();
              },
              pointerForward: function () {
                this.pointer < this.filteredOptions.length - 1 &&
                  (this.pointer++,
                  this.$refs.list.scrollTop <=
                    this.pointerPosition -
                      (this.visibleElements - 1) * this.optionHeight &&
                    (this.$refs.list.scrollTop =
                      this.pointerPosition -
                      (this.visibleElements - 1) * this.optionHeight),
                  this.filteredOptions[this.pointer] &&
                    this.filteredOptions[this.pointer].$isLabel &&
                    !this.groupSelect &&
                    this.pointerForward()),
                  (this.pointerDirty = !0);
              },
              pointerBackward: function () {
                this.pointer > 0
                  ? (this.pointer--,
                    this.$refs.list.scrollTop >= this.pointerPosition &&
                      (this.$refs.list.scrollTop = this.pointerPosition),
                    this.filteredOptions[this.pointer] &&
                      this.filteredOptions[this.pointer].$isLabel &&
                      !this.groupSelect &&
                      this.pointerBackward())
                  : this.filteredOptions[this.pointer] &&
                    this.filteredOptions[0].$isLabel &&
                    !this.groupSelect &&
                    this.pointerForward(),
                  (this.pointerDirty = !0);
              },
              pointerReset: function () {
                this.closeOnSelect &&
                  ((this.pointer = 0),
                  this.$refs.list && (this.$refs.list.scrollTop = 0));
              },
              pointerAdjust: function () {
                this.pointer >= this.filteredOptions.length - 1 &&
                  (this.pointer = this.filteredOptions.length
                    ? this.filteredOptions.length - 1
                    : 0),
                  this.filteredOptions.length > 0 &&
                    this.filteredOptions[this.pointer].$isLabel &&
                    !this.groupSelect &&
                    this.pointerForward();
              },
              pointerSet: function (x) {
                (this.pointer = x), (this.pointerDirty = !0);
              },
            },
          });
      },
      function (s, l, r) {
        var f = r(52),
          p = (r.n(f), r(80)),
          g = (r.n(p), r(54)),
          c = r(55);
        l.a = {
          name: "vue-multiselect",
          mixins: [g.a, c.a],
          props: {
            name: { type: String, default: "" },
            selectLabel: { type: String, default: "Press enter to select" },
            selectGroupLabel: {
              type: String,
              default: "Press enter to select group",
            },
            selectedLabel: { type: String, default: "Selected" },
            deselectLabel: { type: String, default: "Press enter to remove" },
            deselectGroupLabel: {
              type: String,
              default: "Press enter to deselect group",
            },
            showLabels: { type: Boolean, default: !0 },
            limit: { type: Number, default: 99999 },
            maxHeight: { type: Number, default: 300 },
            limitText: {
              type: Function,
              default: function (w) {
                return "and ".concat(w, " more");
              },
            },
            loading: { type: Boolean, default: !1 },
            disabled: { type: Boolean, default: !1 },
            openDirection: { type: String, default: "" },
            showNoOptions: { type: Boolean, default: !0 },
            showNoResults: { type: Boolean, default: !0 },
            tabindex: { type: Number, default: 0 },
          },
          computed: {
            hasOptionGroup: function () {
              return this.groupValues && this.groupLabel && this.groupSelect;
            },
            isSingleLabelVisible: function () {
              return (
                (this.singleValue || this.singleValue === 0) &&
                (!this.isOpen || !this.searchable) &&
                !this.visibleValues.length
              );
            },
            isPlaceholderVisible: function () {
              return !(
                this.internalValue.length ||
                (this.searchable && this.isOpen)
              );
            },
            visibleValues: function () {
              return this.multiple
                ? this.internalValue.slice(0, this.limit)
                : [];
            },
            singleValue: function () {
              return this.internalValue[0];
            },
            deselectLabelText: function () {
              return this.showLabels ? this.deselectLabel : "";
            },
            deselectGroupLabelText: function () {
              return this.showLabels ? this.deselectGroupLabel : "";
            },
            selectLabelText: function () {
              return this.showLabels ? this.selectLabel : "";
            },
            selectGroupLabelText: function () {
              return this.showLabels ? this.selectGroupLabel : "";
            },
            selectedLabelText: function () {
              return this.showLabels ? this.selectedLabel : "";
            },
            inputStyle: function () {
              return this.searchable ||
                (this.multiple && this.value && this.value.length)
                ? this.isOpen
                  ? { width: "100%" }
                  : { width: "0", position: "absolute", padding: "0" }
                : "";
            },
            contentStyle: function () {
              return this.options.length
                ? { display: "inline-block" }
                : { display: "block" };
            },
            isAbove: function () {
              return (
                this.openDirection === "above" ||
                this.openDirection === "top" ||
                (this.openDirection !== "below" &&
                  this.openDirection !== "bottom" &&
                  this.preferredOpenDirection === "above")
              );
            },
            showSearchInput: function () {
              return (
                this.searchable &&
                (!this.hasSingleSelectedSlot ||
                  (!this.visibleSingleValue && this.visibleSingleValue !== 0) ||
                  this.isOpen)
              );
            },
          },
        };
      },
      function (s, l, r) {
        var f = r(19),
          p = r(48),
          g = r(10),
          c = function (w) {
            return function (S, v, T) {
              var x,
                A = f(S),
                P = g(A),
                j = p(T, P);
              if (w && v != v) {
                for (; P > j; ) if ((x = A[j++]) != x) return !0;
              } else
                for (; P > j; j++)
                  if ((w || j in A) && A[j] === v) return w || j || 0;
              return !w && -1;
            };
          };
        s.exports = { includes: c(!0), indexOf: c(!1) };
      },
      function (s, l, r) {
        var f = r(74),
          p = TypeError;
        s.exports = function (g, c) {
          if (!delete g[c])
            throw p("Cannot delete property " + f(c) + " of " + f(g));
        };
      },
      function (s, l) {
        var r = typeof document == "object" && document.all,
          f = r === void 0 && r !== void 0;
        s.exports = { all: r, IS_HTMLDDA: f };
      },
      function (s, l, r) {
        var f = r(4),
          p = r(8),
          g = f.document,
          c = p(g) && p(g.createElement);
        s.exports = function (w) {
          return c ? g.createElement(w) : {};
        };
      },
      function (s, l, r) {
        var f = r(25),
          p = r(40);
        s.exports = function (g, c) {
          var w = g[c];
          return p(w) ? void 0 : f(w);
        };
      },
      function (s, l, r) {
        var f = r(5),
          p = r(0),
          g = r(60);
        s.exports =
          !f &&
          !p(function () {
            return (
              Object.defineProperty(g("div"), "a", {
                get: function () {
                  return 7;
                },
              }).a != 7
            );
          });
      },
      function (s, l, r) {
        var f = r(1),
          p = r(2),
          g = r(46),
          c = f(Function.toString);
        p(g.inspectSource) ||
          (g.inspectSource = function (w) {
            return c(w);
          }),
          (s.exports = g.inspectSource);
      },
      function (s, l, r) {
        var f,
          p,
          g,
          c = r(124),
          w = r(4),
          S = r(8),
          v = r(30),
          T = r(7),
          x = r(46),
          A = r(70),
          P = r(38),
          j = w.TypeError,
          D = w.WeakMap,
          K = function (F) {
            return g(F) ? p(F) : f(F, {});
          },
          R = function (F) {
            return function (a) {
              var rt;
              if (!S(a) || (rt = p(a)).type !== F)
                throw j("Incompatible receiver, " + F + " required");
              return rt;
            };
          };
        if (c || x.state) {
          var W = x.state || (x.state = new D());
          (W.get = W.get),
            (W.has = W.has),
            (W.set = W.set),
            (f = function (F, a) {
              if (W.has(F)) throw j("Object already initialized");
              return (a.facade = F), W.set(F, a), a;
            }),
            (p = function (F) {
              return W.get(F) || {};
            }),
            (g = function (F) {
              return W.has(F);
            });
        } else {
          var Y = A("state");
          (P[Y] = !0),
            (f = function (F, a) {
              if (T(F, Y)) throw j("Object already initialized");
              return (a.facade = F), v(F, Y, a), a;
            }),
            (p = function (F) {
              return T(F, Y) ? F[Y] : {};
            }),
            (g = function (F) {
              return T(F, Y);
            });
        }
        s.exports = { set: f, get: p, has: g, enforce: K, getterFor: R };
      },
      function (s, l, r) {
        var f = r(1),
          p = r(0),
          g = r(2),
          c = r(29),
          w = r(17),
          S = r(63),
          v = function () {},
          T = [],
          x = w("Reflect", "construct"),
          A = /^\s*(?:class|function)\b/,
          P = f(A.exec),
          j = !A.exec(v),
          D = function (R) {
            if (!g(R)) return !1;
            try {
              return x(v, T, R), !0;
            } catch {
              return !1;
            }
          },
          K = function (R) {
            if (!g(R)) return !1;
            switch (c(R)) {
              case "AsyncFunction":
              case "GeneratorFunction":
              case "AsyncGeneratorFunction":
                return !1;
            }
            try {
              return j || !!P(A, S(R));
            } catch {
              return !0;
            }
          };
        (K.sham = !0),
          (s.exports =
            !x ||
            p(function () {
              var R;
              return (
                D(D.call) ||
                !D(Object) ||
                !D(function () {
                  R = !0;
                }) ||
                R
              );
            })
              ? K
              : D);
      },
      function (s, l, r) {
        var f = r(0),
          p = r(2),
          g = /#|\.prototype\./,
          c = function (x, A) {
            var P = S[w(x)];
            return P == T || (P != v && (p(A) ? f(A) : !!A));
          },
          w = (c.normalize = function (x) {
            return String(x).replace(g, ".").toLowerCase();
          }),
          S = (c.data = {}),
          v = (c.NATIVE = "N"),
          T = (c.POLYFILL = "P");
        s.exports = c;
      },
      function (s, l, r) {
        var f = r(68),
          p = r(34),
          g = p.concat("length", "prototype");
        l.f =
          Object.getOwnPropertyNames ||
          function (c) {
            return f(c, g);
          };
      },
      function (s, l, r) {
        var f = r(1),
          p = r(7),
          g = r(19),
          c = r(57).indexOf,
          w = r(38),
          S = f([].push);
        s.exports = function (v, T) {
          var x,
            A = g(v),
            P = 0,
            j = [];
          for (x in A) !p(w, x) && p(A, x) && S(j, x);
          for (; T.length > P; ) p(A, (x = T[P++])) && (~c(j, x) || S(j, x));
          return j;
        };
      },
      function (s, l, r) {
        var f = r(6);
        s.exports = function () {
          var p = f(this),
            g = "";
          return (
            p.hasIndices && (g += "d"),
            p.global && (g += "g"),
            p.ignoreCase && (g += "i"),
            p.multiline && (g += "m"),
            p.dotAll && (g += "s"),
            p.unicode && (g += "u"),
            p.unicodeSets && (g += "v"),
            p.sticky && (g += "y"),
            g
          );
        };
      },
      function (s, l, r) {
        var f = r(47),
          p = r(75),
          g = f("keys");
        s.exports = function (c) {
          return g[c] || (g[c] = p(c));
        };
      },
      function (s, l, r) {
        var f = r(1),
          p = r(24),
          g = r(20),
          c = r(78),
          w = f("".replace),
          S = "[" + c + "]",
          v = RegExp("^" + S + S + "*"),
          T = RegExp(S + S + "*$"),
          x = function (A) {
            return function (P) {
              var j = g(p(P));
              return 1 & A && (j = w(j, v, "")), 2 & A && (j = w(j, T, "")), j;
            };
          };
        s.exports = { start: x(1), end: x(2), trim: x(3) };
      },
      function (s, l, r) {
        var f = r(23),
          p = r(0);
        s.exports =
          !!Object.getOwnPropertySymbols &&
          !p(function () {
            var g = Symbol();
            return (
              !String(g) ||
              !(Object(g) instanceof Symbol) ||
              (!Symbol.sham && f && f < 41)
            );
          });
      },
      function (s, l, r) {
        var f = r(12),
          p = r(8),
          g = r(41),
          c = r(61),
          w = r(113),
          S = r(9),
          v = TypeError,
          T = S("toPrimitive");
        s.exports = function (x, A) {
          if (!p(x) || g(x)) return x;
          var P,
            j = c(x, T);
          if (j) {
            if (
              (A === void 0 && (A = "default"), (P = f(j, x, A)), !p(P) || g(P))
            )
              return P;
            throw v("Can't convert object to primitive value");
          }
          return A === void 0 && (A = "number"), w(x, A);
        };
      },
      function (s, l) {
        var r = String;
        s.exports = function (f) {
          try {
            return r(f);
          } catch {
            return "Object";
          }
        };
      },
      function (s, l, r) {
        var f = r(1),
          p = 0,
          g = Math.random(),
          c = f((1).toString);
        s.exports = function (w) {
          return "Symbol(" + (w === void 0 ? "" : w) + ")_" + c(++p + g, 36);
        };
      },
      function (s, l, r) {
        var f = r(72);
        s.exports = f && !Symbol.sham && typeof Symbol.iterator == "symbol";
      },
      function (s, l, r) {
        var f = r(5),
          p = r(0);
        s.exports =
          f &&
          p(function () {
            return (
              Object.defineProperty(function () {}, "prototype", {
                value: 42,
                writable: !1,
              }).prototype != 42
            );
          });
      },
      function (s, l) {
        s.exports = `	
\v\f\r                　\u2028\u2029\uFEFF`;
      },
      function (s, l, r) {
        var f = r(3),
          p = r(21).find,
          g = r(91),
          c = !0;
        "find" in [] &&
          Array(1).find(function () {
            c = !1;
          }),
          f(
            { target: "Array", proto: !0, forced: c },
            {
              find: function (w) {
                return p(this, w, arguments.length > 1 ? arguments[1] : void 0);
              },
            }
          ),
          g("find");
      },
      function (s, l, r) {
        var f = r(3),
          p = r(18),
          g = r(65),
          c = r(8),
          w = r(48),
          S = r(10),
          v = r(19),
          T = r(32),
          x = r(9),
          A = r(16),
          P = r(93),
          j = A("slice"),
          D = x("species"),
          K = Array,
          R = Math.max;
        f(
          { target: "Array", proto: !0, forced: !j },
          {
            slice: function (W, Y) {
              var F,
                a,
                rt,
                Z = v(this),
                pt = S(Z),
                ut = w(W, pt),
                ft = w(Y === void 0 ? pt : Y, pt);
              if (
                p(Z) &&
                ((F = Z.constructor),
                ((g(F) && (F === K || p(F.prototype))) ||
                  (c(F) && (F = F[D]) === null)) &&
                  (F = void 0),
                F === K || F === void 0)
              )
                return P(Z, ut, ft);
              for (
                a = new (F === void 0 ? K : F)(R(ft - ut, 0)), rt = 0;
                ut < ft;
                ut++, rt++
              )
                ut in Z && T(a, rt, Z[ut]);
              return (a.length = rt), a;
            },
          }
        );
      },
      function (s, l, r) {
        var f = r(1),
          p = r(11),
          g = Date.prototype,
          c = f(g.toString),
          w = f(g.getTime);
        String(new Date(NaN)) != "Invalid Date" &&
          p(g, "toString", function () {
            var S = w(this);
            return S === S ? c(this) : "Invalid Date";
          });
      },
      function (s, l, r) {
        var f = r(11),
          p = r(98),
          g = Error.prototype;
        g.toString !== p && f(g, "toString", p);
      },
      function (s, l, r) {
        var f = r(51),
          p = r(11),
          g = r(112);
        f || p(Object.prototype, "toString", g, { unsafe: !0 });
      },
      function (s, l, r) {
        var f = r(36).PROPER,
          p = r(11),
          g = r(6),
          c = r(20),
          w = r(0),
          S = r(116),
          v = RegExp.prototype,
          T = v.toString,
          x = w(function () {
            return T.call({ source: "a", flags: "b" }) != "/a/b";
          }),
          A = f && T.name != "toString";
        (x || A) &&
          p(
            RegExp.prototype,
            "toString",
            function () {
              var P = g(this);
              return "/" + c(P.source) + "/" + c(S(P));
            },
            { unsafe: !0 }
          );
      },
      function (s, l, r) {
        var f = r(12),
          p = r(99),
          g = r(6),
          c = r(40),
          w = r(24),
          S = r(120),
          v = r(20),
          T = r(61),
          x = r(115);
        p("search", function (A, P, j) {
          return [
            function (D) {
              var K = w(this),
                R = c(D) ? void 0 : T(D, A);
              return R ? f(R, D, K) : new RegExp(D)[A](v(K));
            },
            function (D) {
              var K = g(this),
                R = v(D),
                W = j(P, K, R);
              if (W.done) return W.value;
              var Y = K.lastIndex;
              S(Y, 0) || (K.lastIndex = 0);
              var F = x(K, R);
              return (
                S(K.lastIndex, Y) || (K.lastIndex = Y),
                F === null ? -1 : F.index
              );
            },
          ];
        });
      },
      function (s, l, r) {
        function f(v) {
          r(136);
        }
        var p = r(56),
          g = r(138),
          c = r(137),
          w = f,
          S = c(p.a, g.a, !1, w, null, null);
        l.a = S.exports;
      },
      function (s, l, r) {
        function f(p, g, c) {
          return (
            g in p
              ? Object.defineProperty(p, g, {
                  value: c,
                  enumerable: !0,
                  configurable: !0,
                  writable: !0,
                })
              : (p[g] = c),
            p
          );
        }
        l.a = f;
      },
      function (s, l, r) {
        function f(p) {
          "@babel/helpers - typeof";
          return (f =
            typeof Symbol == "function" && typeof Symbol.iterator == "symbol"
              ? function (g) {
                  return typeof g;
                }
              : function (g) {
                  return g &&
                    typeof Symbol == "function" &&
                    g.constructor === Symbol &&
                    g !== Symbol.prototype
                    ? "symbol"
                    : typeof g;
                })(p);
        }
        l.a = f;
      },
      function (s, l, r) {
        Object.defineProperty(l, "__esModule", { value: !0 });
        var f = r(86),
          p = r(54),
          g = r(55);
        r.d(l, "Multiselect", function () {
          return f.a;
        }),
          r.d(l, "multiselectMixin", function () {
            return p.a;
          }),
          r.d(l, "pointerMixin", function () {
            return g.a;
          }),
          (l.default = f.a);
      },
      function (s, l, r) {
        var f = r(2),
          p = String,
          g = TypeError;
        s.exports = function (c) {
          if (typeof c == "object" || f(c)) return c;
          throw g("Can't set " + p(c) + " as a prototype");
        };
      },
      function (s, l, r) {
        var f = r(9),
          p = r(42),
          g = r(13).f,
          c = f("unscopables"),
          w = Array.prototype;
        w[c] == null && g(w, c, { configurable: !0, value: p(null) }),
          (s.exports = function (S) {
            w[c][S] = !0;
          });
      },
      function (s, l, r) {
        var f = r(25),
          p = r(14),
          g = r(39),
          c = r(10),
          w = TypeError,
          S = function (v) {
            return function (T, x, A, P) {
              f(x);
              var j = p(T),
                D = g(j),
                K = c(j),
                R = v ? K - 1 : 0,
                W = v ? -1 : 1;
              if (A < 2)
                for (;;) {
                  if (R in D) {
                    (P = D[R]), (R += W);
                    break;
                  }
                  if (((R += W), v ? R < 0 : K <= R))
                    throw w("Reduce of empty array with no initial value");
                }
              for (; v ? R >= 0 : K > R; R += W)
                R in D && (P = x(P, D[R], R, j));
              return P;
            };
          };
        s.exports = { left: S(!1), right: S(!0) };
      },
      function (s, l, r) {
        var f = r(1);
        s.exports = f([].slice);
      },
      function (s, l, r) {
        var f = r(18),
          p = r(65),
          g = r(8),
          c = r(9),
          w = c("species"),
          S = Array;
        s.exports = function (v) {
          var T;
          return (
            f(v) &&
              ((T = v.constructor),
              ((p(T) && (T === S || f(T.prototype))) ||
                (g(T) && (T = T[w]) === null)) &&
                (T = void 0)),
            T === void 0 ? S : T
          );
        };
      },
      function (s, l, r) {
        var f = r(7),
          p = r(114),
          g = r(43),
          c = r(13);
        s.exports = function (w, S, v) {
          for (var T = p(S), x = c.f, A = g.f, P = 0; P < T.length; P++) {
            var j = T[P];
            f(w, j) || (v && f(v, j)) || x(w, j, A(S, j));
          }
        };
      },
      function (s, l, r) {
        var f = r(15),
          p = r(4);
        s.exports = f(p.process) == "process";
      },
      function (s, l, r) {
        var f = r(17);
        s.exports = f("navigator", "userAgent") || "";
      },
      function (s, l, r) {
        var f = r(5),
          p = r(0),
          g = r(6),
          c = r(42),
          w = r(106),
          S = Error.prototype.toString,
          v = p(function () {
            if (f) {
              var T = c(
                Object.defineProperty({}, "name", {
                  get: function () {
                    return this === T;
                  },
                })
              );
              if (S.call(T) !== "true") return !0;
            }
            return (
              S.call({ message: 1, name: 2 }) !== "2: 1" ||
              S.call({}) !== "Error"
            );
          });
        s.exports = v
          ? function () {
              var T = g(this),
                x = w(T.name, "Error"),
                A = w(T.message);
              return x ? (A ? x + ": " + A : x) : A;
            }
          : S;
      },
      function (s, l, r) {
        r(53);
        var f = r(37),
          p = r(11),
          g = r(45),
          c = r(0),
          w = r(9),
          S = r(30),
          v = w("species"),
          T = RegExp.prototype;
        s.exports = function (x, A, P, j) {
          var D = w(x),
            K = !c(function () {
              var F = {};
              return (
                (F[D] = function () {
                  return 7;
                }),
                ""[x](F) != 7
              );
            }),
            R =
              K &&
              !c(function () {
                var F = !1,
                  a = /a/;
                return (
                  x === "split" &&
                    ((a = {}),
                    (a.constructor = {}),
                    (a.constructor[v] = function () {
                      return a;
                    }),
                    (a.flags = ""),
                    (a[D] = /./[D])),
                  (a.exec = function () {
                    return (F = !0), null;
                  }),
                  a[D](""),
                  !F
                );
              });
          if (!K || !R || P) {
            var W = f(/./[D]),
              Y = A(D, ""[x], function (F, a, rt, Z, pt) {
                var ut = f(F),
                  ft = a.exec;
                return ft === g || ft === T.exec
                  ? K && !pt
                    ? { done: !0, value: W(a, rt, Z) }
                    : { done: !0, value: ut(rt, a, Z) }
                  : { done: !1 };
              });
            p(String.prototype, x, Y[0]), p(T, D, Y[1]);
          }
          j && S(T[D], "sham", !0);
        };
      },
      function (s, l, r) {
        var f = r(37),
          p = r(25),
          g = r(35),
          c = f(f.bind);
        s.exports = function (w, S) {
          return (
            p(w),
            S === void 0
              ? w
              : g
              ? c(w, S)
              : function () {
                  return w.apply(S, arguments);
                }
          );
        };
      },
      function (s, l, r) {
        var f = r(17);
        s.exports = f("document", "documentElement");
      },
      function (s, l, r) {
        var f = r(2),
          p = r(8),
          g = r(111);
        s.exports = function (c, w, S) {
          var v, T;
          return (
            g &&
              f((v = w.constructor)) &&
              v !== S &&
              p((T = v.prototype)) &&
              T !== S.prototype &&
              g(c, T),
            c
          );
        };
      },
      function (s, l) {
        s.exports = !1;
      },
      function (s, l, r) {
        var f = r(0),
          p = r(2),
          g = r(7),
          c = r(5),
          w = r(36).CONFIGURABLE,
          S = r(63),
          v = r(64),
          T = v.enforce,
          x = v.get,
          A = Object.defineProperty,
          P =
            c &&
            !f(function () {
              return A(function () {}, "length", { value: 8 }).length !== 8;
            }),
          j = String(String).split("String"),
          D = (s.exports = function (K, R, W) {
            String(R).slice(0, 7) === "Symbol(" &&
              (R = "[" + String(R).replace(/^Symbol\(([^)]*)\)/, "$1") + "]"),
              W && W.getter && (R = "get " + R),
              W && W.setter && (R = "set " + R),
              (!g(K, "name") || (w && K.name !== R)) &&
                (c
                  ? A(K, "name", { value: R, configurable: !0 })
                  : (K.name = R)),
              P &&
                W &&
                g(W, "arity") &&
                K.length !== W.arity &&
                A(K, "length", { value: W.arity });
            try {
              W && g(W, "constructor") && W.constructor
                ? c && A(K, "prototype", { writable: !1 })
                : K.prototype && (K.prototype = void 0);
            } catch {}
            var Y = T(K);
            return (
              g(Y, "source") ||
                (Y.source = j.join(typeof R == "string" ? R : "")),
              K
            );
          });
        Function.prototype.toString = D(function () {
          return (p(this) && x(this).source) || S(this);
        }, "toString");
      },
      function (s, l) {
        var r = Math.ceil,
          f = Math.floor;
        s.exports =
          Math.trunc ||
          function (p) {
            var g = +p;
            return (g > 0 ? f : r)(g);
          };
      },
      function (s, l, r) {
        var f = r(20);
        s.exports = function (p, g) {
          return p === void 0 ? (arguments.length < 2 ? "" : g) : f(p);
        };
      },
      function (s, l, r) {
        var f = r(5),
          p = r(77),
          g = r(13),
          c = r(6),
          w = r(19),
          S = r(109);
        l.f =
          f && !p
            ? Object.defineProperties
            : function (v, T) {
                c(v);
                for (var x, A = w(T), P = S(T), j = P.length, D = 0; j > D; )
                  g.f(v, (x = P[D++]), A[x]);
                return v;
              };
      },
      function (s, l) {
        l.f = Object.getOwnPropertySymbols;
      },
      function (s, l, r) {
        var f = r(68),
          p = r(34);
        s.exports =
          Object.keys ||
          function (g) {
            return f(g, p);
          };
      },
      function (s, l, r) {
        var f = {}.propertyIsEnumerable,
          p = Object.getOwnPropertyDescriptor,
          g = p && !f.call({ 1: 2 }, 1);
        l.f = g
          ? function (c) {
              var w = p(this, c);
              return !!w && w.enumerable;
            }
          : f;
      },
      function (s, l, r) {
        var f = r(1),
          p = r(6),
          g = r(90);
        s.exports =
          Object.setPrototypeOf ||
          ("__proto__" in {}
            ? (function () {
                var c,
                  w = !1,
                  S = {};
                try {
                  (c = f(
                    Object.getOwnPropertyDescriptor(
                      Object.prototype,
                      "__proto__"
                    ).set
                  )),
                    c(S, []),
                    (w = S instanceof Array);
                } catch {}
                return function (v, T) {
                  return p(v), g(T), w ? c(v, T) : (v.__proto__ = T), v;
                };
              })()
            : void 0);
      },
      function (s, l, r) {
        var f = r(51),
          p = r(29);
        s.exports = f
          ? {}.toString
          : function () {
              return "[object " + p(this) + "]";
            };
      },
      function (s, l, r) {
        var f = r(12),
          p = r(2),
          g = r(8),
          c = TypeError;
        s.exports = function (w, S) {
          var v, T;
          if (
            (S === "string" && p((v = w.toString)) && !g((T = f(v, w)))) ||
            (p((v = w.valueOf)) && !g((T = f(v, w)))) ||
            (S !== "string" && p((v = w.toString)) && !g((T = f(v, w))))
          )
            return T;
          throw c("Can't convert object to primitive value");
        };
      },
      function (s, l, r) {
        var f = r(17),
          p = r(1),
          g = r(67),
          c = r(108),
          w = r(6),
          S = p([].concat);
        s.exports =
          f("Reflect", "ownKeys") ||
          function (v) {
            var T = g.f(w(v)),
              x = c.f;
            return x ? S(T, x(v)) : T;
          };
      },
      function (s, l, r) {
        var f = r(12),
          p = r(6),
          g = r(2),
          c = r(15),
          w = r(45),
          S = TypeError;
        s.exports = function (v, T) {
          var x = v.exec;
          if (g(x)) {
            var A = f(x, v, T);
            return A !== null && p(A), A;
          }
          if (c(v) === "RegExp") return f(w, v, T);
          throw S("RegExp#exec called on incompatible receiver");
        };
      },
      function (s, l, r) {
        var f = r(12),
          p = r(7),
          g = r(44),
          c = r(69),
          w = RegExp.prototype;
        s.exports = function (S) {
          var v = S.flags;
          return v !== void 0 || "flags" in w || p(S, "flags") || !g(w, S)
            ? v
            : f(c, S);
        };
      },
      function (s, l, r) {
        var f = r(0),
          p = r(4),
          g = p.RegExp,
          c = f(function () {
            var v = g("a", "y");
            return (v.lastIndex = 2), v.exec("abcd") != null;
          }),
          w =
            c ||
            f(function () {
              return !g("a", "y").sticky;
            }),
          S =
            c ||
            f(function () {
              var v = g("^r", "gy");
              return (v.lastIndex = 2), v.exec("str") != null;
            });
        s.exports = { BROKEN_CARET: S, MISSED_STICKY: w, UNSUPPORTED_Y: c };
      },
      function (s, l, r) {
        var f = r(0),
          p = r(4),
          g = p.RegExp;
        s.exports = f(function () {
          var c = g(".", "s");
          return !(
            c.dotAll &&
            c.exec(`
`) &&
            c.flags === "s"
          );
        });
      },
      function (s, l, r) {
        var f = r(0),
          p = r(4),
          g = p.RegExp;
        s.exports = f(function () {
          var c = g("(?<a>b)", "g");
          return (
            c.exec("b").groups.a !== "b" || "b".replace(c, "$<a>c") !== "bc"
          );
        });
      },
      function (s, l) {
        s.exports =
          Object.is ||
          function (r, f) {
            return r === f ? r !== 0 || 1 / r == 1 / f : r != r && f != f;
          };
      },
      function (s, l, r) {
        var f = r(36).PROPER,
          p = r(0),
          g = r(78),
          c = "​᠎";
        s.exports = function (w) {
          return p(function () {
            return !!g[w]() || c[w]() !== c || (f && g[w].name !== w);
          });
        };
      },
      function (s, l, r) {
        var f = r(1);
        s.exports = f((1).valueOf);
      },
      function (s, l, r) {
        var f = r(49),
          p = Math.min;
        s.exports = function (g) {
          return g > 0 ? p(f(g), 9007199254740991) : 0;
        };
      },
      function (s, l, r) {
        var f = r(4),
          p = r(2),
          g = f.WeakMap;
        s.exports = p(g) && /native code/.test(String(g));
      },
      function (s, l, r) {
        var f = r(3),
          p = r(0),
          g = r(18),
          c = r(8),
          w = r(14),
          S = r(10),
          v = r(22),
          T = r(32),
          x = r(28),
          A = r(16),
          P = r(9),
          j = r(23),
          D = P("isConcatSpreadable"),
          K =
            j >= 51 ||
            !p(function () {
              var Y = [];
              return (Y[D] = !1), Y.concat()[0] !== Y;
            }),
          R = A("concat"),
          W = function (Y) {
            if (!c(Y)) return !1;
            var F = Y[D];
            return F !== void 0 ? !!F : g(Y);
          };
        f(
          { target: "Array", proto: !0, arity: 1, forced: !K || !R },
          {
            concat: function (Y) {
              var F,
                a,
                rt,
                Z,
                pt,
                ut = w(this),
                ft = x(ut, 0),
                V = 0;
              for (F = -1, rt = arguments.length; F < rt; F++)
                if (((pt = F === -1 ? ut : arguments[F]), W(pt)))
                  for (Z = S(pt), v(V + Z), a = 0; a < Z; a++, V++)
                    a in pt && T(ft, V, pt[a]);
                else v(V + 1), T(ft, V++, pt);
              return (ft.length = V), ft;
            },
          }
        );
      },
      function (s, l, r) {
        var f = r(3),
          p = r(21).every;
        f(
          { target: "Array", proto: !0, forced: !r(26)("every") },
          {
            every: function (g) {
              return p(this, g, arguments.length > 1 ? arguments[1] : void 0);
            },
          }
        );
      },
      function (s, l, r) {
        var f = r(3),
          p = r(21).filter;
        f(
          { target: "Array", proto: !0, forced: !r(16)("filter") },
          {
            filter: function (g) {
              return p(this, g, arguments.length > 1 ? arguments[1] : void 0);
            },
          }
        );
      },
      function (s, l, r) {
        var f = r(3),
          p = r(37),
          g = r(57).indexOf,
          c = r(26),
          w = p([].indexOf),
          S = !!w && 1 / w([1], 1, -0) < 0,
          v = c("indexOf");
        f(
          { target: "Array", proto: !0, forced: S || !v },
          {
            indexOf: function (T) {
              var x = arguments.length > 1 ? arguments[1] : void 0;
              return S ? w(this, T, x) || 0 : g(this, T, x);
            },
          }
        );
      },
      function (s, l, r) {
        r(3)({ target: "Array", stat: !0 }, { isArray: r(18) });
      },
      function (s, l, r) {
        var f = r(3),
          p = r(21).map;
        f(
          { target: "Array", proto: !0, forced: !r(16)("map") },
          {
            map: function (g) {
              return p(this, g, arguments.length > 1 ? arguments[1] : void 0);
            },
          }
        );
      },
      function (s, l, r) {
        var f = r(3),
          p = r(14),
          g = r(10),
          c = r(27),
          w = r(22),
          S = r(0),
          v = S(function () {
            return [].push.call({ length: 4294967296 }, 1) !== 4294967297;
          }),
          T = !(function () {
            try {
              Object.defineProperty([], "length", { writable: !1 }).push();
            } catch (x) {
              return x instanceof TypeError;
            }
          })();
        f(
          { target: "Array", proto: !0, arity: 1, forced: v || T },
          {
            push: function (x) {
              var A = p(this),
                P = g(A),
                j = arguments.length;
              w(P + j);
              for (var D = 0; D < j; D++) (A[P] = arguments[D]), P++;
              return c(A, P), P;
            },
          }
        );
      },
      function (s, l, r) {
        var f = r(3),
          p = r(92).left,
          g = r(26),
          c = r(23),
          w = r(96),
          S = g("reduce"),
          v = !w && c > 79 && c < 83;
        f(
          { target: "Array", proto: !0, forced: !S || v },
          {
            reduce: function (T) {
              var x = arguments.length;
              return p(this, T, x, x > 1 ? arguments[1] : void 0);
            },
          }
        );
      },
      function (s, l, r) {
        var f = r(3),
          p = r(14),
          g = r(48),
          c = r(49),
          w = r(10),
          S = r(27),
          v = r(22),
          T = r(28),
          x = r(32),
          A = r(58),
          P = r(16),
          j = P("splice"),
          D = Math.max,
          K = Math.min;
        f(
          { target: "Array", proto: !0, forced: !j },
          {
            splice: function (R, W) {
              var Y,
                F,
                a,
                rt,
                Z,
                pt,
                ut = p(this),
                ft = w(ut),
                V = g(R, ft),
                xt = arguments.length;
              for (
                xt === 0
                  ? (Y = F = 0)
                  : xt === 1
                  ? ((Y = 0), (F = ft - V))
                  : ((Y = xt - 2), (F = K(D(c(W), 0), ft - V))),
                  v(ft + Y - F),
                  a = T(ut, F),
                  rt = 0;
                rt < F;
                rt++
              )
                (Z = V + rt) in ut && x(a, rt, ut[Z]);
              if (((a.length = F), Y < F)) {
                for (rt = V; rt < ft - F; rt++)
                  (Z = rt + F),
                    (pt = rt + Y),
                    Z in ut ? (ut[pt] = ut[Z]) : A(ut, pt);
                for (rt = ft; rt > ft - F + Y; rt--) A(ut, rt - 1);
              } else if (Y > F)
                for (rt = ft - F; rt > V; rt--)
                  (Z = rt + F - 1),
                    (pt = rt + Y - 1),
                    Z in ut ? (ut[pt] = ut[Z]) : A(ut, pt);
              for (rt = 0; rt < Y; rt++) ut[rt + V] = arguments[rt + 2];
              return S(ut, ft - F + Y), a;
            },
          }
        );
      },
      function (s, l, r) {
        var f = r(3),
          p = r(14),
          g = r(10),
          c = r(27),
          w = r(58),
          S = r(22),
          v = [].unshift(0) !== 1,
          T = !(function () {
            try {
              Object.defineProperty([], "length", { writable: !1 }).unshift();
            } catch (x) {
              return x instanceof TypeError;
            }
          })();
        f(
          { target: "Array", proto: !0, arity: 1, forced: v || T },
          {
            unshift: function (x) {
              var A = p(this),
                P = g(A),
                j = arguments.length;
              if (j) {
                S(P + j);
                for (var D = P; D--; ) {
                  var K = D + j;
                  D in A ? (A[K] = A[D]) : w(A, K);
                }
                for (var R = 0; R < j; R++) A[R] = arguments[R];
              }
              return c(A, P + j);
            },
          }
        );
      },
      function (s, l, r) {
        var f = r(3),
          p = r(71).trim;
        f(
          { target: "String", proto: !0, forced: r(121)("trim") },
          {
            trim: function () {
              return p(this);
            },
          }
        );
      },
      function (s, l) {},
      function (s, l) {
        s.exports = function (r, f, p, g, c, w) {
          var S,
            v = (r = r || {}),
            T = typeof r.default;
          (T !== "object" && T !== "function") || ((S = r), (v = r.default));
          var x = typeof v == "function" ? v.options : v;
          f &&
            ((x.render = f.render),
            (x.staticRenderFns = f.staticRenderFns),
            (x._compiled = !0)),
            p && (x.functional = !0),
            c && (x._scopeId = c);
          var A;
          if (
            (w
              ? ((A = function (D) {
                  (D =
                    D ||
                    (this.$vnode && this.$vnode.ssrContext) ||
                    (this.parent &&
                      this.parent.$vnode &&
                      this.parent.$vnode.ssrContext)),
                    D ||
                      typeof __VUE_SSR_CONTEXT__ > "u" ||
                      (D = __VUE_SSR_CONTEXT__),
                    g && g.call(this, D),
                    D &&
                      D._registeredComponents &&
                      D._registeredComponents.add(w);
                }),
                (x._ssrRegister = A))
              : g && (A = g),
            A)
          ) {
            var P = x.functional,
              j = P ? x.render : x.beforeCreate;
            P
              ? ((x._injectStyles = A),
                (x.render = function (D, K) {
                  return A.call(K), j(D, K);
                }))
              : (x.beforeCreate = j ? [].concat(j, A) : [A]);
          }
          return { esModule: S, exports: v, options: x };
        };
      },
      function (s, l, r) {
        var f = function () {
            var c = this,
              w = c.$createElement,
              S = c._self._c || w;
            return S(
              "div",
              {
                staticClass: "multiselect",
                class: {
                  "multiselect--active": c.isOpen,
                  "multiselect--disabled": c.disabled,
                  "multiselect--above": c.isAbove,
                  "multiselect--has-options-group": c.hasOptionGroup,
                },
                attrs: {
                  tabindex: c.searchable ? -1 : c.tabindex,
                  role: "combobox",
                  "aria-owns": "listbox-" + c.id,
                },
                on: {
                  focus: function (v) {
                    return c.activate();
                  },
                  blur: function (v) {
                    !c.searchable && c.deactivate();
                  },
                  keydown: [
                    function (v) {
                      return (!v.type.indexOf("key") &&
                        c._k(v.keyCode, "down", 40, v.key, [
                          "Down",
                          "ArrowDown",
                        ])) ||
                        v.target !== v.currentTarget
                        ? null
                        : (v.preventDefault(), c.pointerForward());
                    },
                    function (v) {
                      return (!v.type.indexOf("key") &&
                        c._k(v.keyCode, "up", 38, v.key, ["Up", "ArrowUp"])) ||
                        v.target !== v.currentTarget
                        ? null
                        : (v.preventDefault(), c.pointerBackward());
                    },
                  ],
                  keypress: function (v) {
                    return !v.type.indexOf("key") &&
                      c._k(v.keyCode, "enter", 13, v.key, "Enter") &&
                      c._k(v.keyCode, "tab", 9, v.key, "Tab")
                      ? null
                      : (v.stopPropagation(),
                        v.target !== v.currentTarget
                          ? null
                          : c.addPointerElement(v));
                  },
                  keyup: function (v) {
                    return !v.type.indexOf("key") &&
                      c._k(v.keyCode, "esc", 27, v.key, ["Esc", "Escape"])
                      ? null
                      : c.deactivate();
                  },
                },
              },
              [
                c._t(
                  "caret",
                  function () {
                    return [
                      S("div", {
                        staticClass: "multiselect__select",
                        on: {
                          mousedown: function (v) {
                            return (
                              v.preventDefault(),
                              v.stopPropagation(),
                              c.toggle()
                            );
                          },
                        },
                      }),
                    ];
                  },
                  { toggle: c.toggle }
                ),
                c._v(" "),
                c._t("clear", null, { search: c.search }),
                c._v(" "),
                S(
                  "div",
                  { ref: "tags", staticClass: "multiselect__tags" },
                  [
                    c._t(
                      "selection",
                      function () {
                        return [
                          S(
                            "div",
                            {
                              directives: [
                                {
                                  name: "show",
                                  rawName: "v-show",
                                  value: c.visibleValues.length > 0,
                                  expression: "visibleValues.length > 0",
                                },
                              ],
                              staticClass: "multiselect__tags-wrap",
                            },
                            [
                              c._l(c.visibleValues, function (v, T) {
                                return [
                                  c._t(
                                    "tag",
                                    function () {
                                      return [
                                        S(
                                          "span",
                                          {
                                            key: T,
                                            staticClass: "multiselect__tag",
                                          },
                                          [
                                            S("span", {
                                              domProps: {
                                                textContent: c._s(
                                                  c.getOptionLabel(v)
                                                ),
                                              },
                                            }),
                                            c._v(" "),
                                            S("i", {
                                              staticClass:
                                                "multiselect__tag-icon",
                                              attrs: { tabindex: "1" },
                                              on: {
                                                keypress: function (x) {
                                                  return !x.type.indexOf(
                                                    "key"
                                                  ) &&
                                                    c._k(
                                                      x.keyCode,
                                                      "enter",
                                                      13,
                                                      x.key,
                                                      "Enter"
                                                    )
                                                    ? null
                                                    : (x.preventDefault(),
                                                      c.removeElement(v));
                                                },
                                                mousedown: function (x) {
                                                  return (
                                                    x.preventDefault(),
                                                    c.removeElement(v)
                                                  );
                                                },
                                              },
                                            }),
                                          ]
                                        ),
                                      ];
                                    },
                                    {
                                      option: v,
                                      search: c.search,
                                      remove: c.removeElement,
                                    }
                                  ),
                                ];
                              }),
                            ],
                            2
                          ),
                          c._v(" "),
                          c.internalValue && c.internalValue.length > c.limit
                            ? [
                                c._t("limit", function () {
                                  return [
                                    S("strong", {
                                      staticClass: "multiselect__strong",
                                      domProps: {
                                        textContent: c._s(
                                          c.limitText(
                                            c.internalValue.length - c.limit
                                          )
                                        ),
                                      },
                                    }),
                                  ];
                                }),
                              ]
                            : c._e(),
                        ];
                      },
                      {
                        search: c.search,
                        remove: c.removeElement,
                        values: c.visibleValues,
                        isOpen: c.isOpen,
                      }
                    ),
                    c._v(" "),
                    S(
                      "transition",
                      { attrs: { name: "multiselect__loading" } },
                      [
                        c._t("loading", function () {
                          return [
                            S("div", {
                              directives: [
                                {
                                  name: "show",
                                  rawName: "v-show",
                                  value: c.loading,
                                  expression: "loading",
                                },
                              ],
                              staticClass: "multiselect__spinner",
                            }),
                          ];
                        }),
                      ],
                      2
                    ),
                    c._v(" "),
                    c.searchable
                      ? S("input", {
                          ref: "search",
                          staticClass: "multiselect__input",
                          style: c.inputStyle,
                          attrs: {
                            name: c.name,
                            id: c.id,
                            type: "text",
                            autocomplete: "off",
                            spellcheck: "false",
                            placeholder: c.placeholder,
                            disabled: c.disabled,
                            tabindex: c.tabindex,
                            "aria-controls": "listbox-" + c.id,
                          },
                          domProps: { value: c.search },
                          on: {
                            input: function (v) {
                              return c.updateSearch(v.target.value);
                            },
                            focus: function (v) {
                              return v.preventDefault(), c.activate();
                            },
                            blur: function (v) {
                              return v.preventDefault(), c.deactivate();
                            },
                            keyup: function (v) {
                              return !v.type.indexOf("key") &&
                                c._k(v.keyCode, "esc", 27, v.key, [
                                  "Esc",
                                  "Escape",
                                ])
                                ? null
                                : c.deactivate();
                            },
                            keydown: [
                              function (v) {
                                return !v.type.indexOf("key") &&
                                  c._k(v.keyCode, "down", 40, v.key, [
                                    "Down",
                                    "ArrowDown",
                                  ])
                                  ? null
                                  : (v.preventDefault(), c.pointerForward());
                              },
                              function (v) {
                                return !v.type.indexOf("key") &&
                                  c._k(v.keyCode, "up", 38, v.key, [
                                    "Up",
                                    "ArrowUp",
                                  ])
                                  ? null
                                  : (v.preventDefault(), c.pointerBackward());
                              },
                              function (v) {
                                return !v.type.indexOf("key") &&
                                  c._k(v.keyCode, "delete", [8, 46], v.key, [
                                    "Backspace",
                                    "Delete",
                                    "Del",
                                  ])
                                  ? null
                                  : (v.stopPropagation(),
                                    c.removeLastElement());
                              },
                            ],
                            keypress: function (v) {
                              return !v.type.indexOf("key") &&
                                c._k(v.keyCode, "enter", 13, v.key, "Enter")
                                ? null
                                : (v.preventDefault(),
                                  v.stopPropagation(),
                                  v.target !== v.currentTarget
                                    ? null
                                    : c.addPointerElement(v));
                            },
                          },
                        })
                      : c._e(),
                    c._v(" "),
                    c.isSingleLabelVisible
                      ? S(
                          "span",
                          {
                            staticClass: "multiselect__single",
                            on: {
                              mousedown: function (v) {
                                return (
                                  v.preventDefault(),
                                  c.toggle.apply(null, arguments)
                                );
                              },
                            },
                          },
                          [
                            c._t(
                              "singleLabel",
                              function () {
                                return [[c._v(c._s(c.currentOptionLabel))]];
                              },
                              { option: c.singleValue }
                            ),
                          ],
                          2
                        )
                      : c._e(),
                    c._v(" "),
                    c.isPlaceholderVisible
                      ? S(
                          "span",
                          {
                            staticClass: "multiselect__placeholder",
                            on: {
                              mousedown: function (v) {
                                return (
                                  v.preventDefault(),
                                  c.toggle.apply(null, arguments)
                                );
                              },
                            },
                          },
                          [
                            c._t("placeholder", function () {
                              return [
                                c._v(
                                  `
          ` +
                                    c._s(c.placeholder) +
                                    `
        `
                                ),
                              ];
                            }),
                          ],
                          2
                        )
                      : c._e(),
                  ],
                  2
                ),
                c._v(" "),
                S("transition", { attrs: { name: "multiselect" } }, [
                  S(
                    "div",
                    {
                      directives: [
                        {
                          name: "show",
                          rawName: "v-show",
                          value: c.isOpen,
                          expression: "isOpen",
                        },
                      ],
                      ref: "list",
                      staticClass: "multiselect__content-wrapper",
                      style: { maxHeight: c.optimizedHeight + "px" },
                      attrs: { tabindex: "-1" },
                      on: {
                        focus: c.activate,
                        mousedown: function (v) {
                          v.preventDefault();
                        },
                      },
                    },
                    [
                      S(
                        "ul",
                        {
                          staticClass: "multiselect__content",
                          style: c.contentStyle,
                          attrs: { role: "listbox", id: "listbox-" + c.id },
                        },
                        [
                          c._t("beforeList"),
                          c._v(" "),
                          c.multiple && c.max === c.internalValue.length
                            ? S("li", [
                                S(
                                  "span",
                                  { staticClass: "multiselect__option" },
                                  [
                                    c._t("maxElements", function () {
                                      return [
                                        c._v(
                                          "Maximum of " +
                                            c._s(c.max) +
                                            " options selected. First remove a selected option to select another."
                                        ),
                                      ];
                                    }),
                                  ],
                                  2
                                ),
                              ])
                            : c._e(),
                          c._v(" "),
                          !c.max || c.internalValue.length < c.max
                            ? c._l(c.filteredOptions, function (v, T) {
                                return S(
                                  "li",
                                  {
                                    key: T,
                                    staticClass: "multiselect__element",
                                    attrs: {
                                      id: c.id + "-" + T,
                                      role:
                                        v && (v.$isLabel || v.$isDisabled)
                                          ? null
                                          : "option",
                                    },
                                  },
                                  [
                                    v && (v.$isLabel || v.$isDisabled)
                                      ? c._e()
                                      : S(
                                          "span",
                                          {
                                            staticClass: "multiselect__option",
                                            class: c.optionHighlight(T, v),
                                            attrs: {
                                              "data-select":
                                                v && v.isTag
                                                  ? c.tagPlaceholder
                                                  : c.selectLabelText,
                                              "data-selected":
                                                c.selectedLabelText,
                                              "data-deselect":
                                                c.deselectLabelText,
                                            },
                                            on: {
                                              click: function (x) {
                                                return (
                                                  x.stopPropagation(),
                                                  c.select(v)
                                                );
                                              },
                                              mouseenter: function (x) {
                                                return x.target !==
                                                  x.currentTarget
                                                  ? null
                                                  : c.pointerSet(T);
                                              },
                                            },
                                          },
                                          [
                                            c._t(
                                              "option",
                                              function () {
                                                return [
                                                  S("span", [
                                                    c._v(
                                                      c._s(c.getOptionLabel(v))
                                                    ),
                                                  ]),
                                                ];
                                              },
                                              {
                                                option: v,
                                                search: c.search,
                                                index: T,
                                              }
                                            ),
                                          ],
                                          2
                                        ),
                                    c._v(" "),
                                    v && (v.$isLabel || v.$isDisabled)
                                      ? S(
                                          "span",
                                          {
                                            staticClass: "multiselect__option",
                                            class: c.groupHighlight(T, v),
                                            attrs: {
                                              "data-select":
                                                c.groupSelect &&
                                                c.selectGroupLabelText,
                                              "data-deselect":
                                                c.groupSelect &&
                                                c.deselectGroupLabelText,
                                            },
                                            on: {
                                              mouseenter: function (x) {
                                                if (
                                                  x.target !== x.currentTarget
                                                )
                                                  return null;
                                                c.groupSelect &&
                                                  c.pointerSet(T);
                                              },
                                              mousedown: function (x) {
                                                return (
                                                  x.preventDefault(),
                                                  c.selectGroup(v)
                                                );
                                              },
                                            },
                                          },
                                          [
                                            c._t(
                                              "option",
                                              function () {
                                                return [
                                                  S("span", [
                                                    c._v(
                                                      c._s(c.getOptionLabel(v))
                                                    ),
                                                  ]),
                                                ];
                                              },
                                              {
                                                option: v,
                                                search: c.search,
                                                index: T,
                                              }
                                            ),
                                          ],
                                          2
                                        )
                                      : c._e(),
                                  ]
                                );
                              })
                            : c._e(),
                          c._v(" "),
                          S(
                            "li",
                            {
                              directives: [
                                {
                                  name: "show",
                                  rawName: "v-show",
                                  value:
                                    c.showNoResults &&
                                    c.filteredOptions.length === 0 &&
                                    c.search &&
                                    !c.loading,
                                  expression:
                                    "showNoResults && (filteredOptions.length === 0 && search && !loading)",
                                },
                              ],
                            },
                            [
                              S(
                                "span",
                                { staticClass: "multiselect__option" },
                                [
                                  c._t(
                                    "noResult",
                                    function () {
                                      return [
                                        c._v(
                                          "No elements found. Consider changing the search query."
                                        ),
                                      ];
                                    },
                                    { search: c.search }
                                  ),
                                ],
                                2
                              ),
                            ]
                          ),
                          c._v(" "),
                          S(
                            "li",
                            {
                              directives: [
                                {
                                  name: "show",
                                  rawName: "v-show",
                                  value:
                                    c.showNoOptions &&
                                    (c.options.length === 0 ||
                                      (c.hasOptionGroup === !0 &&
                                        c.filteredOptions.length === 0)) &&
                                    !c.search &&
                                    !c.loading,
                                  expression:
                                    "showNoOptions && ((options.length === 0 || (hasOptionGroup === true && filteredOptions.length === 0)) && !search && !loading)",
                                },
                              ],
                            },
                            [
                              S(
                                "span",
                                { staticClass: "multiselect__option" },
                                [
                                  c._t("noOptions", function () {
                                    return [c._v("List is empty.")];
                                  }),
                                ],
                                2
                              ),
                            ]
                          ),
                          c._v(" "),
                          c._t("afterList"),
                        ],
                        2
                      ),
                    ]
                  ),
                ]),
              ],
              2
            );
          },
          p = [],
          g = { render: f, staticRenderFns: p };
        l.a = g;
      },
      function (s, l) {
        var r;
        r = (function () {
          return this;
        })();
        try {
          r = r || Function("return this")() || (0, eval)("this");
        } catch {
          typeof window == "object" && (r = window);
        }
        s.exports = r;
      },
    ]);
  });
})(Zr);
var Qs = Zr.exports;
const Qr = Yr(Qs),
  Js = he.extend({
    props: {
      artboard: { type: Object, required: !0 },
      value: { type: Boolean, required: !0 },
      name: { type: String, default: "" },
      imgUrl: { type: String, default: "" },
      callback: { type: Function, default: () => !1 },
    },
    data() {
      return { isSelected: !1 };
    },
    mounted() {
      this.isSelected = this.value;
    },
    methods: {
      onClick() {
        (this.isSelected = !this.isSelected),
          this.$emit("input", this.isSelected),
          this.callback();
      },
    },
  });
var to = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s(
        "label",
        {
          staticClass: "selectable-container",
          class: { selected: e.value },
          on: {
            click: function (l) {
              return (
                l.stopPropagation(),
                l.preventDefault(),
                e.onClick.apply(null, arguments)
              );
            },
          },
        },
        [
          s("input", {
            attrs: { type: "checkbox" },
            domProps: { checked: e.value },
            on: {
              click: function (l) {
                return l.stopPropagation(), e.onClick.apply(null, arguments);
              },
            },
          }),
          s("div", { staticClass: "ab-icon-container" }, [
            s("img", { staticClass: "ab-icon", attrs: { src: e.imgUrl } }),
          ]),
          s("span", [e._v(e._s(e.name))]),
        ]
      )
    );
  },
  eo = [],
  io = kt(Js, to, eo, !1, null, "357ffe2b", null, null);
const ro = io.exports,
  no = Qt.extend({
    components: {
      AxButton: We,
      AxButtonGroup: Rr,
      AxIcon: di,
      AxList: Br,
      AxListItem: $r,
      AxSelectableArtboardIcon: ro,
      ExpoPopup: nr,
      AxEditable: is,
      AxFormErrors: rs,
    },
    props: {
      active: { type: Boolean, default: !1 },
      masters: { type: Object, required: !0 },
      artboard: { type: Object, required: !0 },
      artboards: { type: Object, required: !0 },
    },
    data() {
      return { deleteConfirmation: void 0, applyToArtboardSelector: void 0 };
    },
    computed: {
      isActive: {
        get() {
          return this.active;
        },
        set(n) {
          this.$emit("input", n);
        },
      },
      isEmpty() {
        return Object.keys(this.masters).length === 0;
      },
    },
    methods: {
      addRemoveMasters(n, e = !1) {
        e ? this.addMaster(n) : this.removeMaster(n);
      },
      async addMaster(n) {
        if (!this.currentProject) return;
        const { Id: e } = this.artboard,
          { shortcut: s } = this.currentProject;
        this.$store.commit(new tr(s, e, n)),
          await this.$store.dispatch(new er(s, e, n));
      },
      async removeMaster(n) {
        if (!this.currentProject) return;
        const { Id: e } = this.artboard,
          { shortcut: s } = this.currentProject;
        this.$store.commit(new ir(s, e, n)),
          await this.$store.dispatch(new rr(s, e, n));
      },
      async copyMaster(n) {
        if (!this.currentProject) return;
        const { shortcut: e } = this.currentProject;
        await this.$store.dispatch(
          new ns(
            e,
            this.currentProject.masters[n.Id],
            this.artboard,
            () => null
          )
        );
      },
      async renameMaster(n, e) {
        if (!this.currentProject) return;
        if (!e) throw Error("Master's name shouldn't be empty.");
        const { shortcut: s } = this.currentProject;
        await this.$store.dispatch(
          new ss(s, this.currentProject.masters[n], e)
        );
      },
      openDeleteMasterConfirmation(n) {
        (this.applyToArtboardSelector = void 0),
          (this.deleteConfirmation = n.Id);
      },
      closeDeleteMasterConfirmation() {
        this.deleteConfirmation = void 0;
      },
      async deleteMaster(n) {
        if (!this.currentProject) return;
        this.closeDeleteMasterConfirmation();
        const { shortcut: e } = this.currentProject;
        await this.$store.dispatch(
          new os(e, this.currentProject.masters[n.Id])
        );
      },
      getRelatedMasterArtboards(n) {
        if (!this.currentProject) return {};
        const e = this.currentProject,
          s = this.artboards,
          l = {};
        return (
          Object.values(s).forEach((r, f) => {
            l[r.Id] = {
              Id: r.Id,
              Name: Pi(r.Name) ? r.Asset.OriginalFileName : r.Name,
              AssetUrl: e.assetsImages[r.Asset.Id],
              IsIncludedInMaster: r.MasterIds.indexOf(n) > -1,
            };
          }),
          l
        );
      },
      getActiveArtboardCountForMaster(n) {
        return Object.values(this.getRelatedMasterArtboards(n)).reduce(
          (e, s) => (s.IsIncludedInMaster === !0 ? ++e : e),
          0
        );
      },
      toggleArtboardSelectorContainer(n) {
        (this.deleteConfirmation = void 0),
          this.applyToArtboardSelector === n.Id
            ? (this.applyToArtboardSelector = void 0)
            : (this.applyToArtboardSelector = n.Id);
      },
      async toggleSelectedArtboard(n, e) {
        if (!this.currentProject) return;
        const { shortcut: s } = this.currentProject;
        n.IsIncludedInMaster
          ? (this.$store.commit(new tr(s, n.Id, e)),
            await this.$store.dispatch(new er(s, n.Id, e)))
          : (this.$store.commit(new ir(s, n.Id, e)),
            await this.$store.dispatch(new rr(s, n.Id, e)));
      },
    },
  });
var so = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      e.isActive
        ? s("ExpoPopup", {
            scopedSlots: e._u(
              [
                {
                  key: "header",
                  fn: function () {
                    return [
                      s("div", { staticClass: "form-title" }, [
                        e._v(" Manage Masters "),
                      ]),
                    ];
                  },
                  proxy: !0,
                },
                {
                  key: "default",
                  fn: function () {
                    return [
                      e.isEmpty
                        ? s(
                            "div",
                            { staticClass: "masters-empty-state-info" },
                            [
                              s("AxIcon", {
                                staticClass: "masters-empty-state-logo",
                                attrs: { name: "masters-empty-state" },
                              }),
                              s("div", [
                                s("p", [
                                  e._v(
                                    " Masters are a collection of hotspots that you can apply across screens "
                                  ),
                                ]),
                                s("p", [
                                  e._v(
                                    ' To create a new master, add an interaction, then select "add hotspot in master" '
                                  ),
                                ]),
                              ]),
                            ],
                            1
                          )
                        : s(
                            "AxList",
                            e._l(e.masters, function (l) {
                              return s(
                                "AxListItem",
                                { key: l.Id, staticClass: "master-list-item" },
                                [
                                  s("div", { staticClass: "row" }, [
                                    s("div", { staticClass: "col" }, [
                                      s(
                                        "div",
                                        { staticClass: "w-100" },
                                        [
                                          s("AxEditable", {
                                            staticClass: "editable-master-name",
                                            attrs: {
                                              value: l.Name,
                                              submit: (r) =>
                                                e.renameMaster(l.Id, r),
                                              title: l.Name,
                                            },
                                          }),
                                        ],
                                        1
                                      ),
                                    ]),
                                    s(
                                      "div",
                                      { staticClass: "col text-end" },
                                      [
                                        s(
                                          "AxButtonGroup",
                                          [
                                            s(
                                              "AxButton",
                                              {
                                                attrs: {
                                                  color: "light",
                                                  small: "",
                                                },
                                                on: {
                                                  click: function (r) {
                                                    return e.toggleArtboardSelectorContainer(
                                                      l
                                                    );
                                                  },
                                                },
                                              },
                                              [e._v(" Apply ")]
                                            ),
                                            s(
                                              "AxButton",
                                              {
                                                attrs: {
                                                  color: "light",
                                                  small: "",
                                                },
                                                on: {
                                                  click: function (r) {
                                                    return e.copyMaster(l);
                                                  },
                                                },
                                              },
                                              [e._v(" Duplicate ")]
                                            ),
                                            s(
                                              "AxButton",
                                              {
                                                attrs: {
                                                  color: "light",
                                                  small: "",
                                                },
                                                on: {
                                                  click: function (r) {
                                                    return e.openDeleteMasterConfirmation(
                                                      l
                                                    );
                                                  },
                                                },
                                              },
                                              [
                                                s("AxIcon", {
                                                  attrs: { name: "delete" },
                                                }),
                                              ],
                                              1
                                            ),
                                          ],
                                          1
                                        ),
                                      ],
                                      1
                                    ),
                                  ]),
                                  s("div", { staticClass: "row" }, [
                                    s("div", { staticClass: "col" }, [
                                      s(
                                        "span",
                                        { staticClass: "used-on-label" },
                                        [
                                          e._v(
                                            " Used on " +
                                              e._s(
                                                e.getActiveArtboardCountForMaster(
                                                  l.Id
                                                )
                                              ) +
                                              " artboards "
                                          ),
                                        ]
                                      ),
                                    ]),
                                  ]),
                                  e.deleteConfirmation === l.Id
                                    ? s(
                                        "div",
                                        {
                                          staticClass:
                                            "delete-master-confirmation",
                                        },
                                        [
                                          s("div", { staticClass: "row" }, [
                                            s("div", { staticClass: "col" }, [
                                              s("span", [
                                                e._v("Delete "),
                                                s("span", [e._v(e._s(l.Name))]),
                                                e._v("?"),
                                              ]),
                                            ]),
                                            s(
                                              "div",
                                              { staticClass: "col" },
                                              [
                                                s(
                                                  "AxButtonGroup",
                                                  [
                                                    s(
                                                      "AxButton",
                                                      {
                                                        attrs: {
                                                          small: "",
                                                          color: "danger",
                                                        },
                                                        on: {
                                                          click: function (r) {
                                                            return (
                                                              r.preventDefault(),
                                                              e.deleteMaster(l)
                                                            );
                                                          },
                                                        },
                                                      },
                                                      [e._v(" Confirm Delete ")]
                                                    ),
                                                    s(
                                                      "AxButton",
                                                      {
                                                        attrs: {
                                                          small: "",
                                                          color: "link",
                                                        },
                                                        on: {
                                                          click:
                                                            e.closeDeleteMasterConfirmation,
                                                        },
                                                      },
                                                      [e._v(" Cancel ")]
                                                    ),
                                                  ],
                                                  1
                                                ),
                                              ],
                                              1
                                            ),
                                          ]),
                                        ]
                                      )
                                    : e._e(),
                                  e.applyToArtboardSelector === l.Id
                                    ? s(
                                        "div",
                                        { staticClass: "artboards-list" },
                                        e._l(
                                          e.getRelatedMasterArtboards(l.Id),
                                          function (r) {
                                            return s(
                                              "AxSelectableArtboardIcon",
                                              {
                                                key: r.Id,
                                                attrs: {
                                                  artboard: r,
                                                  name: r.Name,
                                                  "img-url": r.AssetUrl,
                                                  callback: () =>
                                                    e.toggleSelectedArtboard(
                                                      r,
                                                      l.Id
                                                    ),
                                                },
                                                model: {
                                                  value: r.IsIncludedInMaster,
                                                  callback: function (f) {
                                                    e.$set(
                                                      r,
                                                      "IsIncludedInMaster",
                                                      f
                                                    );
                                                  },
                                                  expression:
                                                    "ab.IsIncludedInMaster",
                                                },
                                              }
                                            );
                                          }
                                        ),
                                        1
                                      )
                                    : e._e(),
                                ]
                              );
                            }),
                            1
                          ),
                    ];
                  },
                  proxy: !0,
                },
              ],
              null,
              !1,
              3591751105
            ),
            model: {
              value: e.isActive,
              callback: function (l) {
                e.isActive = l;
              },
              expression: "isActive",
            },
          })
        : e._e()
    );
  },
  oo = [],
  ao = kt(no, so, oo, !1, null, null, null, null);
const uo = ao.exports,
  lo = he.extend({
    props: {
      id: { type: String, required: !0 },
      label: { type: String, required: !0 },
      value: { type: Boolean, required: !0 },
      stop: { type: Boolean, default: !0 },
      callback: { type: Function, default: () => !1 },
    },
    methods: {
      onClick(n) {
        this.stop && n.stopPropagation();
      },
      onChange(n) {
        const e = this.$refs.checkbox.checked;
        this.$emit("input", e),
          this.callback(this.id, e),
          this.stop && n.stopPropagation();
      },
    },
  });
var co = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s("div", { staticClass: "ax-checkbox-list-item" }, [
        s(
          "label",
          { staticClass: "checkbox-label", on: { click: e.onClick } },
          [
            s("input", {
              ref: "checkbox",
              staticClass: "checkbox-input",
              attrs: { type: "checkbox" },
              domProps: { checked: e.value },
              on: { change: e.onChange },
            }),
            s("div", { staticClass: "label-text-container" }, [
              s("span", [e._v(e._s(e.label))]),
            ]),
          ]
        ),
      ])
    );
  },
  fo = [],
  ho = kt(lo, co, fo, !1, null, "58cde389", null, null);
const po = ho.exports,
  go = Qt.extend({
    components: {
      AxButton: We,
      AxButtonGroup: Rr,
      AxCheckboxListItem: po,
      AxDropdownButton: as,
      AxIcon: di,
      AxList: Br,
      AxListItem: $r,
      ExpoManageMastersPopup: uo,
      ExpoPopup: nr,
      Multiselect: Qr,
    },
    directives: { clickAway: Fr },
    props: {
      artboard: { type: Object, required: !0 },
      draggable: { type: Boolean, required: !1, default: !0 },
    },
    data() {
      return {
        menuOpened: !1,
        deleteConfirmationPopup: !1,
        manageMastersPopup: !1,
        isCreate: !1,
        newMasterName: "",
      };
    },
    computed: {
      artboardName() {
        if (!this.currentProject) return "";
        const n = this.artboard,
          e = this.currentProject.assets[n.AssetId];
        return n.Name === "" || n.Name == null ? e.OriginalFileName : n.Name;
      },
      isSelected() {
        if (!this.currentProject) return !1;
        const n = this.artboard;
        return !!this.currentProject.selectedArtboards[n.Id];
      },
      isArchived() {
        return this.artboard.IsArchived;
      },
      hasProjectMasters() {
        return this.currentProject
          ? Object.keys(this.currentProject.masters).length !== 0
          : !1;
      },
      cssClasses() {
        return { selected: this.isSelected, draggable: this.draggable };
      },
      masters() {
        if (!this.currentProject) return {};
        const n = this.artboard.MasterIds,
          e = {};
        return (
          Object.values(this.currentProject.masters).forEach((s, l) => {
            e[s.Id] = { Id: s.Id, Name: s.Name, Enabled: n.indexOf(s.Id) > -1 };
          }),
          e
        );
      },
      artboards() {
        return this.currentProject ? this.currentProject.artboards : {};
      },
    },
    methods: {
      clickedAway() {
        this.menuOpened && this.closeMenu();
      },
      closeMenu() {
        this.toggleMenu(!1);
      },
      openMenu() {
        this.toggleMenu(!0);
      },
      toggleMenu(n) {
        n === void 0 && (n = !this.menuOpened), (this.menuOpened = n);
      },
      toggleCallback(n) {
        this.menuOpened = n;
      },
      async archiveArtboard() {
        if ((this.closeMenu(), !this.currentProject)) return;
        const { shortcut: n } = this.currentProject,
          { Id: e } = this.artboard;
        await this.$store.dispatch(new us(n, e));
      },
      async unarchiveArtboard() {
        if ((this.closeMenu(), !this.currentProject)) return;
        const { shortcut: n } = this.currentProject,
          { Id: e } = this.artboard;
        await this.$store.dispatch(new ls(n, e));
      },
      openDeleteConfirmationPopup() {
        this.closeMenu(), (this.deleteConfirmationPopup = !0);
      },
      closeDeleteConfirmationPopup() {
        this.deleteConfirmationPopup = !1;
      },
      async deleteArtboard() {
        if (!this.currentProject) return;
        this.closeDeleteConfirmationPopup(), this.closeMenu();
        const { shortcut: n } = this.currentProject,
          { Id: e } = this.artboard;
        await this.$store.dispatch(new cs(n, e));
      },
      openManageMastersPopup() {
        this.closeMenu(), (this.manageMastersPopup = !0);
      },
      closeManageMastersPopup() {
        this.manageMastersPopup = !1;
      },
      addRemoveMasters(n, e = !1) {
        e ? this.addMaster(n) : this.removeMaster(n);
      },
      async addMaster(n) {
        if (!this.currentProject) return;
        const { shortcut: e } = this.currentProject,
          { Id: s } = this.artboard;
        this.$store.commit(new tr(e, s, n)),
          await this.$store.dispatch(new er(e, s, n));
      },
      async removeMaster(n) {
        if (!this.currentProject) return;
        const { shortcut: e } = this.currentProject,
          { Id: s } = this.artboard;
        this.$store.commit(new ir(e, s, n)),
          await this.$store.dispatch(new rr(e, s, n));
      },
    },
  });
var mo = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s(
        "div",
        { staticClass: "expo-artboard-container", class: e.cssClasses },
        [
          s(
            "div",
            {
              staticClass: "expo-artboard-container-header",
              on: {
                click: [
                  function (l) {
                    return l.ctrlKey || l.shiftKey || l.altKey || l.metaKey
                      ? null
                      : e.$emit("singleSelect");
                  },
                  function (l) {
                    return !l.ctrlKey || l.shiftKey || l.altKey || l.metaKey
                      ? null
                      : e.$emit("toggleSelect", l);
                  },
                  function (l) {
                    return !l.metaKey || l.ctrlKey || l.shiftKey || l.altKey
                      ? null
                      : e.$emit("toggleSelect", l);
                  },
                  function (l) {
                    return !l.shiftKey || l.ctrlKey || l.altKey || l.metaKey
                      ? null
                      : e.$emit("spanSelect");
                  },
                  function (l) {
                    return !l.ctrlKey || !l.shiftKey || l.altKey || l.metaKey
                      ? null
                      : e.$emit("extendSpanSelect", l);
                  },
                  function (l) {
                    return !l.metaKey || !l.shiftKey || l.ctrlKey || l.altKey
                      ? null
                      : e.$emit("extendSpanSelect", l);
                  },
                ],
              },
            },
            [
              s(
                "div",
                {
                  staticClass: "expo-artboard-header-title drag-handle",
                  class: { selected: e.isSelected },
                },
                [
                  s("span", { attrs: { title: e.artboardName } }, [
                    e._v(" " + e._s(e.artboardName) + " "),
                  ]),
                ]
              ),
              s(
                "AxDropdownButton",
                {
                  attrs: {
                    color: "artboard-menu-btn",
                    "toggle-callback": e.toggleCallback,
                  },
                  scopedSlots: e._u([
                    {
                      key: "activator",
                      fn: function () {
                        return [
                          s(
                            "AxButton",
                            {
                              directives: [
                                {
                                  name: "show",
                                  rawName: "v-show",
                                  value: e.isSelected,
                                  expression: "isSelected",
                                },
                              ],
                              attrs: { color: "link" },
                            },
                            [
                              s("AxIcon", {
                                ref: "menuIcon",
                                staticClass: "expo-artboard-header-button-menu",
                                attrs: { name: "overflow" },
                              }),
                            ],
                            1
                          ),
                        ];
                      },
                      proxy: !0,
                    },
                  ]),
                },
                [
                  s(
                    "AxList",
                    { staticClass: "expo-artboard-menu-options-list" },
                    [
                      s(
                        "AxListItem",
                        [
                          s(
                            "AxButton",
                            {
                              attrs: { color: "link" },
                              on: {
                                click: function (l) {
                                  return (
                                    l.preventDefault(),
                                    e.openDeleteConfirmationPopup.apply(
                                      null,
                                      arguments
                                    )
                                  );
                                },
                              },
                            },
                            [e._v(" Delete Screen ")]
                          ),
                        ],
                        1
                      ),
                      e.hasProjectMasters
                        ? s(
                            "div",
                            [
                              s("div", { staticClass: "masters-list-label" }, [
                                e._v(" Add Master: "),
                              ]),
                              e._l(e.masters, function (l) {
                                return s(
                                  "AxListItem",
                                  { key: l.Id },
                                  [
                                    s("AxCheckboxListItem", {
                                      attrs: {
                                        id: l.Id,
                                        label: l.Name,
                                        callback: e.addRemoveMasters,
                                      },
                                      model: {
                                        value: l.Enabled,
                                        callback: function (r) {
                                          e.$set(l, "Enabled", r);
                                        },
                                        expression: "master.Enabled",
                                      },
                                    }),
                                  ],
                                  1
                                );
                              }),
                            ],
                            2
                          )
                        : e._e(),
                      s(
                        "AxListItem",
                        [
                          s(
                            "AxButton",
                            {
                              attrs: { color: "link" },
                              on: {
                                click: function (l) {
                                  return (
                                    l.preventDefault(),
                                    e.openManageMastersPopup.apply(
                                      null,
                                      arguments
                                    )
                                  );
                                },
                              },
                            },
                            [e._v(" Manage Masters ")]
                          ),
                        ],
                        1
                      ),
                    ],
                    1
                  ),
                ],
                1
              ),
            ],
            1
          ),
          e._t("default", null, { isSelected: e.isSelected }),
          e.deleteConfirmationPopup
            ? s("ExpoPopup", {
                scopedSlots: e._u(
                  [
                    {
                      key: "header",
                      fn: function () {
                        return [
                          s("div", { staticClass: "form-title" }, [
                            e._v(" Delete Screen? "),
                          ]),
                        ];
                      },
                      proxy: !0,
                    },
                    {
                      key: "default",
                      fn: function () {
                        return [s("p", [e._v("This cannot be undone")])];
                      },
                      proxy: !0,
                    },
                    {
                      key: "footer",
                      fn: function () {
                        return [
                          s(
                            "div",
                            { staticClass: "d-flex justify-content-between" },
                            [
                              s(
                                "AxButton",
                                {
                                  attrs: {
                                    type: "button",
                                    color: "secondary",
                                    medium: "",
                                  },
                                  on: { click: e.closeDeleteConfirmationPopup },
                                },
                                [e._v(" No, Keep Screen ")]
                              ),
                              s(
                                "AxButton",
                                {
                                  attrs: {
                                    type: "button",
                                    medium: "",
                                    color: "danger",
                                  },
                                  on: { click: e.deleteArtboard },
                                },
                                [e._v(" Yes, Delete Screen ")]
                              ),
                            ],
                            1
                          ),
                        ];
                      },
                      proxy: !0,
                    },
                  ],
                  null,
                  !1,
                  306095120
                ),
                model: {
                  value: e.deleteConfirmationPopup,
                  callback: function (l) {
                    e.deleteConfirmationPopup = l;
                  },
                  expression: "deleteConfirmationPopup",
                },
              })
            : e._e(),
          e.manageMastersPopup
            ? s("ExpoManageMastersPopup", {
                attrs: {
                  active: e.manageMastersPopup,
                  masters: e.masters,
                  artboard: e.artboard,
                  artboards: e.artboards,
                },
                on: {
                  input: function (l) {
                    e.manageMastersPopup = l;
                  },
                },
              })
            : e._e(),
        ],
        2
      )
    );
  },
  vo = [],
  yo = kt(go, mo, vo, !1, null, "95752017", null, null);
const bo = yo.exports;
function ci(n, e, s) {
  if (n)
    if (Array.isArray(n)) for (const l of n) ci(l, e, s);
    else n.addEventListener(e, s, !0);
}
function Ne(n, e, s) {
  if (n)
    if (Array.isArray(n)) for (const l of n) Ne(l, e, s);
    else n.removeEventListener(e, s, !0);
}
const Jr = {
  mouse: { start: "mousedown", move: "mousemove", stop: "mouseup" },
  touch: { start: "touchstart", move: "touchmove", stop: "touchend" },
};
let Ci = Jr.mouse;
const Nr = window.MouseEvent;
function xo(n) {
  return typeof n == "boolean" || typeof n == "string"
    ? !0
    : n.nodeType === Node.ELEMENT_NODE;
}
function So(n) {
  return typeof n == "string" || n.nodeType === Node.ELEMENT_NODE;
}
const _o = he.extend({
  props: {
    active: { type: Boolean, default: !0 },
    axis: {
      type: String,
      default: "both",
      validator: (n) => typeof n == "string" && ["x", "y", "both"].includes(n),
    },
    draggable: { type: Boolean, default: !0 },
    x: { type: Number, default: 0, validator: (n) => typeof n == "number" },
    y: { type: Number, default: 0, validator: (n) => typeof n == "number" },
    handle: {
      type: [String, Boolean, HTMLElement],
      default: document.documentElement,
      validator: xo,
    },
    frame: { type: String, default: "", validator: So },
  },
  data() {
    return {
      enabled: this.active,
      dragging: !1,
      dragstarted: !1,
      rawLeft: this.x,
      rawTop: this.y,
      rawRight: 0,
      rawBottom: 0,
      mouseClickPosition: {
        mouseX: 0,
        mouseY: 0,
        left: 0,
        right: 0,
        top: 0,
        bottom: 0,
      },
      handleTarget: [document.documentElement],
      frameElement: void 0,
    };
  },
  computed: {
    left() {
      return this.rawLeft;
    },
    top() {
      return this.rawTop;
    },
    right() {
      return this.rawRight;
    },
    bottom() {
      return this.rawBottom;
    },
  },
  watch: {
    active(n) {
      (this.enabled = n),
        n ? this.$emit("activated") : this.$emit("deactivated");
    },
  },
  mounted() {
    (this.handleTarget = this.resolveHandleTarget()),
      (this.frameElement = this.resolveFrameElement()),
      ci(this.handleTarget, "mousedown", this.elementDown),
      ci(this.handleTarget, "touchstart", this.elementTouchDown);
  },
  beforeDestroy() {
    Ne(this.handleTarget, "mousedown", this.elementDown),
      Ne(this.handleTarget, "touchstart", this.elementTouchDown);
    const n = document.documentElement;
    Ne(n, "mousemove", this.move),
      Ne(n, "touchmove", this.move),
      Ne(n, "mouseup", this.handleUp),
      Ne(n, "touchend touchcancel", this.deselect);
  },
  methods: {
    deselect(n) {
      const e = n.target || n.srcElement;
      this.$el.contains(e) ||
        (this.enabled &&
          ((this.enabled = !1),
          this.$emit("deactivated"),
          this.$emit("update:active", !1))),
        this.resetBoundsAndMouseState();
    },
    resetBoundsAndMouseState() {
      this.mouseClickPosition = {
        mouseX: 0,
        mouseY: 0,
        left: 0,
        right: 0,
        top: 0,
        bottom: 0,
      };
    },
    elementTouchDown(n) {
      (Ci = Jr.touch), this.elementDown(n);
    },
    elementDown(n) {
      const e = n.target || n.srcElement;
      if (e && this.$el.contains(e)) {
        this.enabled ||
          ((this.enabled = !0),
          this.$emit("activated"),
          this.$emit("update:active", !0)),
          this.draggable &&
            ((this.dragging = !0),
            this.frameElement &&
              (this.frameElement.style.pointerEvents = "none"));
        const s = n instanceof Nr || !n.touches ? n : n.touches[0];
        (this.mouseClickPosition.mouseX = s.pageX),
          (this.mouseClickPosition.mouseY = s.pageY),
          (this.mouseClickPosition.left = this.left),
          (this.mouseClickPosition.right = this.right),
          (this.mouseClickPosition.top = this.top),
          (this.mouseClickPosition.bottom = this.bottom);
        const l = document.documentElement;
        ci(l, Ci.move, this.move), ci(l, Ci.stop, this.handleUp);
      }
    },
    move(n) {
      this.dragging && this.elementMove(n);
    },
    elementMove(n) {
      const e = this.axis,
        s = this.mouseClickPosition,
        l = n instanceof Nr ? n : n.touches[0],
        r = e && e !== "y" ? s.mouseX - l.pageX : 0,
        f = e && e !== "x" ? s.mouseY - l.pageY : 0;
      (Math.abs(r) > 0 || Math.abs(f) > 0) &&
        (this.dragstarted || (this.$emit("dragstart"), (this.dragstarted = !0)),
        (this.rawLeft = s.left - r),
        (this.rawRight = s.right + r),
        (this.rawTop = s.top - f),
        (this.rawBottom = s.bottom + f),
        this.$emit("dragging", {
          x: this.left,
          y: this.top,
          deltaX: r,
          deltaY: f,
        }));
    },
    handleUp() {
      this.dragging &&
        ((this.dragging = !1),
        this.frameElement && (this.frameElement.style.pointerEvents = "auto"),
        this.dragstarted &&
          this.$emit("dragstop", { x: this.left, y: this.top }),
        (this.dragstarted = !1));
      const n = document.documentElement;
      Ne(n, Ci.move, this.move),
        this.resetBoundsAndMouseState(),
        (this.rawTop = 0),
        (this.rawBottom = 0),
        (this.rawLeft = 0),
        (this.rawRight = 0);
    },
    resolveHandleTarget() {
      let n;
      return (
        this.handle === !1
          ? (n = [this.$el])
          : typeof this.handle == "string"
          ? (n = [].slice.call(this.$el.querySelectorAll(this.handle)))
          : (n = [this.handle]),
        n || [document.documentElement]
      );
    },
    resolveFrameElement() {
      if (this.frame)
        return typeof this.frame == "string"
          ? document.querySelectorAll(this.frame)[0]
          : this.frame;
    },
  },
});
var wo = function () {
    var e = this,
      s = e._self._c;
    return e._self._setupProxy, s("div", [e._t("default")], 2);
  },
  Ao = [],
  Co = kt(_o, wo, Ao, !1, null, null, null, null);
const To = Co.exports,
  ko = he.extend({
    props: {
      img: { type: HTMLImageElement, required: !0 },
      positionY: { type: Number, required: !0 },
      positionX: { type: Number, required: !0 },
      power: { type: Number, default: 1 },
      glassWidth: { type: Number, default: 100 },
      glassHeight: { type: Number, default: 100 },
      glassBorder: { type: Number, default: 1 },
    },
    computed: {
      styles() {
        return { ...this.lenseStyles, ...this.bgStyles };
      },
      lenseStyles() {
        return {
          width: `${this.glassWidth}px`,
          height: `${this.glassHeight}px`,
          borderWidth: `${this.glassBorder}px`,
        };
      },
      lenseDimensions() {
        return {
          height: this.glassHeight + this.glassBorder,
          width: this.glassWidth + this.glassBorder,
        };
      },
      bgStyles() {
        const {
            positionY: n,
            positionX: e,
            img: s,
            power: l,
            lenseDimensions: r,
          } = this,
          f = s.width * l,
          p = s.height * l,
          g = (f * e) / 100,
          c = (p * n) / 100;
        return {
          backgroundImage: `url('${s.src}')`,
          backgroundSize: `${f}px ${p}px`,
          backgroundPositionX: `-${g - r.width / 2}px`,
          backgroundPositionY: `-${c - r.height / 2}px`,
        };
      },
      shouldMagnify() {
        const { img: n, power: e } = this;
        return n.width / n.naturalWidth < e || n.height / n.naturalHeight < e;
      },
    },
  });
var Po = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s("div", {
        directives: [
          {
            name: "show",
            rawName: "v-show",
            value: e.shouldMagnify,
            expression: "shouldMagnify",
          },
        ],
        staticClass: "magnifying-glass__lens",
        style: e.styles,
      })
    );
  },
  Oo = [],
  Eo = kt(ko, Po, Oo, !1, null, "89d55a47", null, null);
const Do = Eo.exports,
  Io = he.extend({
    components: { AxDraggable: To, AxIcon: di, MagnifyingGlass: Do },
    props: {
      value: { type: Number, default: 0, required: !0 },
      inverse: { type: Boolean, default: !1 },
      label: { type: String, default: "Running Margin" },
      img: { type: HTMLImageElement, required: !0 },
      min: { type: Number, default: -1 / 0, required: !1 },
      max: { type: Number, default: 1 / 0, required: !1 },
      height: { type: Number, required: !0 },
    },
    data() {
      return { active: !1, preventActivation: !1, innerValue: this.value };
    },
    computed: {
      styles() {
        const n = this.inverse,
          e = this.offsetPercentage;
        return {
          transform: `translateY(${n ? 50 : -50}%)`,
          [n ? "bottom" : "top"]: `${e}%`,
        };
      },
      offsetPercentage() {
        const n = this.innerValue,
          e = this.height;
        return (n / e) * 100;
      },
    },
    created() {
      this.commitValue = Os(this.commitValue, 250);
    },
    methods: {
      activate() {
        this.preventActivation || (this.active = !0);
      },
      deactivate() {
        this.active = !1;
      },
      activateAndFocusInput() {
        this.activate(),
          this.$nextTick(() => {
            const n = this.$refs.input;
            n && (n.focus(), n.select());
          }),
          (this.preventActivation = !1);
      },
      revert() {
        this.innerValue = this.value;
      },
      handleInput(n) {
        n.target instanceof HTMLInputElement &&
          this.updateInnerValue(n.target.value);
      },
      updateInnerValue(n) {
        const e = this.min,
          s = this.max;
        let l = typeof n == "string" ? +n : n;
        l < e && (l = e), l > s && (l = s), (this.innerValue = li(l));
      },
      commitValueAndBlur() {
        this.commitValue(),
          this.$nextTick(() => {
            const n = this.$refs.input;
            n && n.blur();
          });
      },
      commitValue() {
        this.$emit("input", this.innerValue);
      },
      dragstart() {
        (this.preventActivation = !1), this.activate();
      },
      dragging({ y: n }) {
        const e = this.height,
          s = this.inverse ? -n : n,
          l = e / this.img.clientHeight,
          r = s * l,
          f = this.value + r;
        this.updateInnerValue(f);
      },
      dragstop() {
        this.commitValue(), (this.preventActivation = !0), this.deactivate();
      },
    },
  });
var Mo = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s(
        "AxDraggable",
        {
          staticClass: "running-margin",
          class: {
            "running-margin--inverse": e.inverse,
            "running-margin--active": e.active,
          },
          style: e.styles,
          attrs: { axis: "y", handle: ".scrubber" },
          on: {
            dragstart: e.dragstart,
            dragging: e.dragging,
            dragstop: e.dragstop,
          },
        },
        [
          s("div", { staticClass: "running-margin__input-container" }, [
            s(
              "span",
              {
                staticClass: "running-margin__label",
                on: { click: e.activateAndFocusInput },
              },
              [e._v(" " + e._s(e.label) + " ")]
            ),
            s("input", {
              ref: "input",
              staticClass: "running-margin__input",
              attrs: { type: "number", min: "0", step: "1" },
              domProps: { value: e.innerValue },
              on: {
                input: e.handleInput,
                change: e.commitValueAndBlur,
                blur: e.deactivate,
                keyup: function (l) {
                  return !l.type.indexOf("key") &&
                    e._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"])
                    ? null
                    : e.revert.apply(null, arguments);
                },
              },
            }),
            s("span", { staticClass: "running-margin__hint" }, [e._v(" px ")]),
          ]),
          s(
            "div",
            {
              staticClass: "scrubber scrubber--left",
              on: { click: e.activateAndFocusInput },
            },
            [
              s("AxIcon", {
                attrs: {
                  name: e.active ? "scrubber-active" : "scrubber",
                  rotate: "180deg",
                },
              }),
            ],
            1
          ),
          s(
            "div",
            {
              staticClass: "scrubber scrubber--right",
              on: { click: e.activateAndFocusInput },
            },
            [
              s("AxIcon", {
                attrs: { name: e.active ? "scrubber-active" : "scrubber" },
              }),
            ],
            1
          ),
          e.active
            ? [
                s("MagnifyingGlass", {
                  staticClass: "running-margin__magnifying-glass",
                  attrs: {
                    img: e.img,
                    "position-y": e.inverse
                      ? 100 - e.offsetPercentage
                      : e.offsetPercentage,
                    "position-x": 50,
                    power: 3,
                  },
                }),
                s("div", { staticClass: "ruler" }),
              ]
            : e._e(),
        ],
        2
      )
    );
  },
  jo = [],
  No = kt(Io, Mo, jo, !1, null, "ebc570cd", null, null);
const Lo = No.exports,
  Ho = Qt.extend({
    components: { RunningMargin: Lo },
    props: {
      targetArtboard: fi(),
      img: { type: HTMLImageElement, required: !0 },
    },
    data() {
      return {
        minGap: 10,
        headerHeight: this.targetArtboard.HeaderHeight,
        footerHeight: this.targetArtboard.FooterHeight,
      };
    },
    computed: {
      assetHeight() {
        return this.targetArtboard.Asset.Dimensions.Height;
      },
      maxHeaderHeight() {
        const n = this.assetHeight - this.footerHeight,
          e = this.minGap;
        return n > e ? n - e : n;
      },
      maxFooterHeight() {
        const n = this.assetHeight - this.headerHeight,
          e = this.minGap;
        return n > e ? n - e : n;
      },
    },
    methods: {
      updateValues() {
        (this.headerHeight = this.targetArtboard.HeaderHeight),
          (this.footerHeight = this.targetArtboard.FooterHeight);
      },
      validateHeightValue(n) {
        return typeof n == "number" && Number.isFinite(n);
      },
      async setHeaderHeight(n) {
        this.validateHeightValue(n) &&
          ((this.headerHeight = n), await this.updateHeaderFooterHeight(n, !0));
      },
      async setFooterHeight(n) {
        this.validateHeightValue(n) &&
          ((this.footerHeight = n), await this.updateHeaderFooterHeight(n, !1));
      },
      async updateHeaderFooterHeight(n, e) {
        if (!this.currentProject) return;
        const { shortcut: s } = this.currentProject,
          l = this.targetArtboard;
        await this.$store.dispatch(new fs(s, l, n, e)), this.updateValues();
      },
    },
  });
var Ro = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s(
        "div",
        { staticClass: "artboard-header-footer" },
        [
          s("RunningMargin", {
            attrs: {
              value: e.headerHeight,
              img: e.img,
              min: 0,
              max: e.maxHeaderHeight,
              height: e.assetHeight,
              label: "Fixed Header",
            },
            on: { input: e.setHeaderHeight },
          }),
          s("RunningMargin", {
            attrs: {
              inverse: "",
              value: e.footerHeight,
              img: e.img,
              min: 0,
              max: e.maxFooterHeight,
              height: e.assetHeight,
              label: "Fixed Footer",
            },
            on: { input: e.setFooterHeight },
          }),
        ],
        1
      )
    );
  },
  Bo = [],
  $o = kt(Ho, Ro, Bo, !1, null, "0958c40d", null, null);
const Fo = $o.exports;
function Lr(n) {
  return (
    typeof n == "function" ||
    Object.prototype.toString.call(n) === "[object Function]"
  );
}
function Ze(n, e, s, l = 1) {
  const [r, f] = typeof l == "number" ? [l, l] : l,
    p = Math.round(e / r / n[0]) * n[0],
    g = Math.round(s / f / n[1]) * n[1];
  return [p, g];
}
function Zi(n, e, s) {
  return n - e - s;
}
function Qi(n, e, s) {
  return n - e - s;
}
function Zt(n, e, s) {
  return e !== null && n < e ? e : s !== null && s < n ? s : n;
}
function Hr(n, e, s) {
  let l = n;
  const r = [
    "matches",
    "webkitMatchesSelector",
    "mozMatchesSelector",
    "msMatchesSelector",
    "oMatchesSelector",
  ].find((f) => Lr(l[f]));
  if (!Lr(l[r])) return !1;
  do {
    if (l[r](e)) return !0;
    if (l === s) return !1;
    l = l.parentNode;
  } while (l);
  return !1;
}
function zo(n) {
  const e = window.getComputedStyle(n);
  return [
    parseFloat(e.getPropertyValue("width"), 10),
    parseFloat(e.getPropertyValue("height"), 10),
  ];
}
function Ve(n, e, s) {
  n &&
    (n.attachEvent
      ? n.attachEvent(`on${e}`, s)
      : n.addEventListener
      ? n.addEventListener(e, s, !0)
      : (n[`on${e}`] = s));
}
function Ae(n, e, s) {
  n &&
    (n.detachEvent
      ? n.detachEvent(`on${e}`, s)
      : n.removeEventListener
      ? n.removeEventListener(e, s, !0)
      : (n[`on${e}`] = null));
}
const ki = {
    mouse: { start: "mousedown", move: "mousemove", stop: "mouseup" },
    touch: { start: "touchstart", move: "touchmove", stop: "touchend" },
  },
  qo = {
    userSelect: "none",
    MozUserSelect: "none",
    WebkitUserSelect: "none",
    MsUserSelect: "none",
  },
  Vo = {
    userSelect: "auto",
    MozUserSelect: "auto",
    WebkitUserSelect: "auto",
    MsUserSelect: "auto",
  };
let Ce = ki.mouse;
const Wo = {
  replace: !0,
  name: "VueDraggableResizable",
  props: {
    className: { type: String, default: "vdr" },
    classNameDraggable: { type: String, default: "draggable" },
    classNameResizable: { type: String, default: "resizable" },
    classNameDragging: { type: String, default: "dragging" },
    classNameResizing: { type: String, default: "resizing" },
    classNameActive: { type: String, default: "active" },
    classNameHandle: { type: String, default: "handle" },
    disableUserSelect: { type: Boolean, default: !0 },
    enableNativeDrag: { type: Boolean, default: !1 },
    preventDeactivation: { type: Boolean, default: !1 },
    active: { type: Boolean, default: !1 },
    draggable: { type: Boolean, default: !0 },
    resizable: { type: Boolean, default: !0 },
    lockAspectRatio: { type: Boolean, default: !1 },
    w: {
      type: [Number, String],
      default: 200,
      validator: (n) => (typeof n == "number" ? n > 0 : n === "auto"),
    },
    h: {
      type: [Number, String],
      default: 200,
      validator: (n) => (typeof n == "number" ? n > 0 : n === "auto"),
    },
    minWidth: { type: Number, default: 0, validator: (n) => n >= 0 },
    minHeight: { type: Number, default: 0, validator: (n) => n >= 0 },
    maxWidth: { type: Number, default: null, validator: (n) => n >= 0 },
    maxHeight: { type: Number, default: null, validator: (n) => n >= 0 },
    x: { type: Number, default: 0 },
    y: { type: Number, default: 0 },
    z: {
      type: [String, Number],
      default: "auto",
      validator: (n) => (typeof n == "string" ? n === "auto" : n >= 0),
    },
    handles: {
      type: Array,
      default: () => ["tl", "tm", "tr", "mr", "br", "bm", "bl", "ml"],
      validator: (n) => {
        const e = new Set(["tl", "tm", "tr", "mr", "br", "bm", "bl", "ml"]);
        return new Set(n.filter((s) => e.has(s))).size === n.length;
      },
    },
    dragHandle: { type: String, default: null },
    dragCancel: { type: String, default: null },
    axis: {
      type: String,
      default: "both",
      validator: (n) => ["x", "y", "both"].includes(n),
    },
    grid: { type: Array, default: () => [1, 1] },
    parent: { type: Boolean, default: !1 },
    scale: {
      type: [Number, Array],
      default: 1,
      validator: (n) =>
        typeof n == "number" ? n > 0 : n.length === 2 && n[0] > 0 && n[1] > 0,
    },
    onDragStart: { type: Function, default: () => !0 },
    onDrag: { type: Function, default: () => !0 },
    onResizeStart: { type: Function, default: () => !0 },
    onResize: { type: Function, default: () => !0 },
  },
  data() {
    return {
      left: this.x,
      top: this.y,
      right: null,
      bottom: null,
      width: null,
      height: null,
      widthTouched: !1,
      heightTouched: !1,
      aspectFactor: null,
      parentWidth: null,
      parentHeight: null,
      handle: null,
      enabled: this.active,
      resizing: !1,
      dragging: !1,
      dragEnable: !1,
      resizeEnable: !1,
      zIndex: this.z,
    };
  },
  computed: {
    style() {
      return {
        transform: `translate(${this.left}px, ${this.top}px)`,
        width: this.computedWidth,
        height: this.computedHeight,
        zIndex: this.zIndex,
        ...(this.dragging && this.disableUserSelect ? qo : Vo),
      };
    },
    actualHandles() {
      return this.resizable ? this.handles : [];
    },
    computedWidth() {
      return this.w === "auto" && !this.widthTouched
        ? "auto"
        : `${this.width}px`;
    },
    computedHeight() {
      return this.h === "auto" && !this.heightTouched
        ? "auto"
        : `${this.height}px`;
    },
    minW() {
      return this.minWidth;
    },
    minH() {
      return this.minHeight;
    },
    maxW() {
      return this.maxWidth;
    },
    maxH() {
      return this.maxHeight;
    },
    resizingOnX() {
      return (
        !!this.handle &&
        (this.handle.includes("l") || this.handle.includes("r"))
      );
    },
    resizingOnY() {
      return (
        !!this.handle &&
        (this.handle.includes("t") || this.handle.includes("b"))
      );
    },
    isCornerHandle() {
      return !!this.handle && ["tl", "tr", "br", "bl"].includes(this.handle);
    },
  },
  watch: {
    active(n) {
      (this.enabled = n),
        n ? this.$emit("activated") : this.$emit("deactivated");
    },
    z(n) {
      (n >= 0 || n === "auto") && (this.zIndex = n);
    },
    x(n) {
      this.resizing ||
        this.dragging ||
        (this.parent && (this.bounds = this.calcDragLimits()),
        this.moveHorizontally(n));
    },
    y(n) {
      this.resizing ||
        this.dragging ||
        (this.parent && (this.bounds = this.calcDragLimits()),
        this.moveVertically(n));
    },
    lockAspectRatio(n) {
      n
        ? (this.aspectFactor = this.width / this.height)
        : (this.aspectFactor = void 0);
    },
    w(n) {
      this.resizing ||
        this.dragging ||
        (this.parent && (this.bounds = this.calcResizeLimits()),
        this.changeWidth(n));
    },
    h(n) {
      this.resizing ||
        this.dragging ||
        (this.parent && (this.bounds = this.calcResizeLimits()),
        this.changeHeight(n));
    },
  },
  created() {
    this.maxWidth &&
      this.minWidth > this.maxWidth &&
      console.warn(
        "[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth"
      ),
      this.maxHeight &&
        this.minHeight > this.maxHeight &&
        console.warn(
          "[Vdr warn]: Invalid prop: minHeight cannot be greater than maxHeight"
        ),
      this.resetBoundsAndMouseState();
  },
  mounted() {
    this.enableNativeDrag || (this.$el.ondragstart = () => !1);
    const [n, e] = this.getParentSize();
    (this.parentWidth = n), (this.parentHeight = e);
    const [s, l] = zo(this.$el);
    (this.aspectFactor =
      (this.w !== "auto" ? this.w : s) / (this.h !== "auto" ? this.h : l)),
      (this.width = this.w !== "auto" ? this.w : s),
      (this.height = this.h !== "auto" ? this.h : l),
      (this.right = this.parentWidth - this.width - this.left),
      (this.bottom = this.parentHeight - this.height - this.top),
      this.active && this.$emit("activated"),
      Ve(document.documentElement, "mousedown", this.deselect),
      Ve(document.documentElement, "touchend touchcancel", this.deselect),
      Ve(window, "resize", this.checkParentSize);
  },
  beforeDestroy() {
    Ae(document.documentElement, "mousedown", this.deselect),
      Ae(document.documentElement, "touchstart", this.handleUp),
      Ae(document.documentElement, "mousemove", this.move),
      Ae(document.documentElement, "touchmove", this.move),
      Ae(document.documentElement, "mouseup", this.handleUp),
      Ae(document.documentElement, "touchend touchcancel", this.deselect),
      Ae(window, "resize", this.checkParentSize);
  },
  methods: {
    resetBoundsAndMouseState() {
      (this.mouseClickPosition = {
        mouseX: 0,
        mouseY: 0,
        x: 0,
        y: 0,
        w: 0,
        h: 0,
      }),
        (this.bounds = {
          minLeft: null,
          maxLeft: null,
          minRight: null,
          maxRight: null,
          minTop: null,
          maxTop: null,
          minBottom: null,
          maxBottom: null,
        });
    },
    checkParentSize() {
      if (this.parent) {
        const [n, e] = this.getParentSize();
        (this.parentWidth = n),
          (this.parentHeight = e),
          (this.right = this.parentWidth - this.width - this.left),
          (this.bottom = this.parentHeight - this.height - this.top);
      }
    },
    getParentSize() {
      if (this.parent) {
        const n = window.getComputedStyle(this.$el.parentNode, null);
        return [
          parseInt(n.getPropertyValue("width"), 10),
          parseInt(n.getPropertyValue("height"), 10),
        ];
      }
      return [null, null];
    },
    elementTouchDown(n) {
      (Ce = ki.touch), this.elementDown(n);
    },
    elementMouseDown(n) {
      (Ce = ki.mouse), this.elementDown(n);
    },
    elementDown(n) {
      if (n instanceof MouseEvent && n.which !== 1) return;
      const e = n.target || n.srcElement;
      if (this.$el.contains(e)) {
        if (this.onDragStart(n) === !1) return;
        if (
          (this.dragHandle && !Hr(e, this.dragHandle, this.$el)) ||
          (this.dragCancel && Hr(e, this.dragCancel, this.$el))
        ) {
          this.dragging = !1;
          return;
        }
        this.enabled ||
          ((this.enabled = !0),
          this.$emit("activated"),
          this.$emit("update:active", !0)),
          this.draggable && (this.dragEnable = !0),
          (this.mouseClickPosition.mouseX = n.touches
            ? n.touches[0].pageX
            : n.pageX),
          (this.mouseClickPosition.mouseY = n.touches
            ? n.touches[0].pageY
            : n.pageY),
          (this.mouseClickPosition.left = this.left),
          (this.mouseClickPosition.right = this.right),
          (this.mouseClickPosition.top = this.top),
          (this.mouseClickPosition.bottom = this.bottom),
          this.parent && (this.bounds = this.calcDragLimits()),
          Ve(document.documentElement, Ce.move, this.move),
          Ve(document.documentElement, Ce.stop, this.handleUp);
      }
    },
    calcDragLimits() {
      return {
        minLeft: this.left % this.grid[0],
        maxLeft:
          Math.floor(
            (this.parentWidth - this.width - this.left) / this.grid[0]
          ) *
            this.grid[0] +
          this.left,
        minRight: this.right % this.grid[0],
        maxRight:
          Math.floor(
            (this.parentWidth - this.width - this.right) / this.grid[0]
          ) *
            this.grid[0] +
          this.right,
        minTop: this.top % this.grid[1],
        maxTop:
          Math.floor(
            (this.parentHeight - this.height - this.top) / this.grid[1]
          ) *
            this.grid[1] +
          this.top,
        minBottom: this.bottom % this.grid[1],
        maxBottom:
          Math.floor(
            (this.parentHeight - this.height - this.bottom) / this.grid[1]
          ) *
            this.grid[1] +
          this.bottom,
      };
    },
    deselect(n) {
      const e = n.target || n.srcElement,
        s = new RegExp(`${this.className}-([trmbl]{2})`, "");
      !this.$el.contains(e) &&
        !s.test(e.className) &&
        (this.enabled &&
          !this.preventDeactivation &&
          ((this.enabled = !1),
          this.$emit("deactivated"),
          this.$emit("update:active", !1)),
        Ae(document.documentElement, Ce.move, this.handleResize)),
        this.resetBoundsAndMouseState();
    },
    handleTouchDown(n, e) {
      (Ce = ki.touch), this.handleDown(n, e);
    },
    handleDown(n, e) {
      (e instanceof MouseEvent && e.which !== 1) ||
        (this.onResizeStart(n, e) !== !1 &&
          (e.stopPropagation && e.stopPropagation(),
          this.lockAspectRatio && !n.includes("m")
            ? (this.handle = `m${n.substring(1)}`)
            : (this.handle = n),
          (this.resizeEnable = !0),
          (this.mouseClickPosition.mouseX = e.touches
            ? e.touches[0].pageX
            : e.pageX),
          (this.mouseClickPosition.mouseY = e.touches
            ? e.touches[0].pageY
            : e.pageY),
          (this.mouseClickPosition.left = this.left),
          (this.mouseClickPosition.right = this.right),
          (this.mouseClickPosition.top = this.top),
          (this.mouseClickPosition.bottom = this.bottom),
          (this.bounds = this.calcResizeLimits()),
          Ve(document.documentElement, Ce.move, this.handleResize),
          Ve(document.documentElement, Ce.stop, this.handleUp)));
    },
    calcResizeLimits() {
      let n = this.minW,
        e = this.minH,
        s = this.maxW,
        l = this.maxH;
      const r = this.aspectFactor,
        [f, p] = this.grid,
        g = this.width,
        c = this.height,
        w = this.left,
        S = this.top,
        v = this.right,
        T = this.bottom;
      this.lockAspectRatio &&
        (n / e > r ? (e = n / r) : (n = r * e),
        s && l
          ? ((s = Math.min(s, r * l)), (l = Math.min(l, s / r)))
          : s
          ? (l = s / r)
          : l && (s = r * l)),
        (s -= s % f),
        (l -= l % p);
      const x = {
        minLeft: null,
        maxLeft: null,
        minTop: null,
        maxTop: null,
        minRight: null,
        maxRight: null,
        minBottom: null,
        maxBottom: null,
      };
      return (
        this.parent
          ? ((x.minLeft = w % f),
            (x.maxLeft = w + Math.floor((g - n) / f) * f),
            (x.minTop = S % p),
            (x.maxTop = S + Math.floor((c - e) / p) * p),
            (x.minRight = v % f),
            (x.maxRight = v + Math.floor((g - n) / f) * f),
            (x.minBottom = T % p),
            (x.maxBottom = T + Math.floor((c - e) / p) * p),
            s &&
              ((x.minLeft = Math.max(x.minLeft, this.parentWidth - v - s)),
              (x.minRight = Math.max(x.minRight, this.parentWidth - w - s))),
            l &&
              ((x.minTop = Math.max(x.minTop, this.parentHeight - T - l)),
              (x.minBottom = Math.max(x.minBottom, this.parentHeight - S - l))),
            this.lockAspectRatio &&
              ((x.minLeft = Math.max(x.minLeft, w - S * r)),
              (x.minTop = Math.max(x.minTop, S - w / r)),
              (x.minRight = Math.max(x.minRight, v - T * r)),
              (x.minBottom = Math.max(x.minBottom, T - v / r))))
          : ((x.minLeft = null),
            (x.maxLeft = w + Math.floor((g - n) / f) * f),
            (x.minTop = null),
            (x.maxTop = S + Math.floor((c - e) / p) * p),
            (x.minRight = null),
            (x.maxRight = v + Math.floor((g - n) / f) * f),
            (x.minBottom = null),
            (x.maxBottom = T + Math.floor((c - e) / p) * p),
            s && ((x.minLeft = -(v + s)), (x.minRight = -(w + s))),
            l && ((x.minTop = -(T + l)), (x.minBottom = -(S + l))),
            this.lockAspectRatio &&
              s &&
              l &&
              ((x.minLeft = Math.min(x.minLeft, -(v + s))),
              (x.minTop = Math.min(x.minTop, -(l + T))),
              (x.minRight = Math.min(x.minRight, -w - s)),
              (x.minBottom = Math.min(x.minBottom, -S - l)))),
        x
      );
    },
    move(n) {
      this.resizing
        ? this.handleResize(n)
        : this.dragEnable && this.handleDrag(n);
    },
    handleDrag(n) {
      const e = this.axis,
        s = this.grid,
        l = this.bounds,
        r = this.mouseClickPosition,
        f =
          e && e !== "y"
            ? r.mouseX - (n.touches ? n.touches[0].pageX : n.pageX)
            : 0,
        p =
          e && e !== "x"
            ? r.mouseY - (n.touches ? n.touches[0].pageY : n.pageY)
            : 0,
        [g, c] = Ze(s, f, p, this.scale),
        w = Zt(r.left - g, l.minLeft, l.maxLeft),
        S = Zt(r.top - c, l.minTop, l.maxTop);
      if (this.onDrag(w, S) === !1) return;
      const v = Zt(r.right + g, l.minRight, l.maxRight),
        T = Zt(r.bottom + c, l.minBottom, l.maxBottom);
      (this.left = w),
        (this.top = S),
        (this.right = v),
        (this.bottom = T),
        this.$emit("dragging", this.left, this.top),
        (this.dragging = !0);
    },
    moveHorizontally(n) {
      const [e, s] = Ze(this.grid, n, this.top, 1),
        l = Zt(e, this.bounds.minLeft, this.bounds.maxLeft);
      (this.left = l), (this.right = this.parentWidth - this.width - l);
    },
    moveVertically(n) {
      const [e, s] = Ze(this.grid, this.left, n, 1),
        l = Zt(s, this.bounds.minTop, this.bounds.maxTop);
      (this.top = l), (this.bottom = this.parentHeight - this.height - l);
    },
    handleResize(n) {
      let e = this.left,
        s = this.top,
        l = this.right,
        r = this.bottom;
      const f = this.mouseClickPosition;
      this.lockAspectRatio;
      const p = this.aspectFactor,
        g = f.mouseX - (n.touches ? n.touches[0].pageX : n.pageX),
        c = f.mouseY - (n.touches ? n.touches[0].pageY : n.pageY);
      !this.widthTouched && g && (this.widthTouched = !0),
        !this.heightTouched && c && (this.heightTouched = !0);
      const [w, S] = Ze(this.grid, g, c, this.scale);
      this.handle.includes("b")
        ? ((r = Zt(f.bottom + S, this.bounds.minBottom, this.bounds.maxBottom)),
          this.lockAspectRatio &&
            this.resizingOnY &&
            (l = this.right - (this.bottom - r) * p))
        : this.handle.includes("t") &&
          ((s = Zt(f.top - S, this.bounds.minTop, this.bounds.maxTop)),
          this.lockAspectRatio &&
            this.resizingOnY &&
            (e = this.left - (this.top - s) * p)),
        this.handle.includes("r")
          ? ((l = Zt(f.right + w, this.bounds.minRight, this.bounds.maxRight)),
            this.lockAspectRatio &&
              this.resizingOnX &&
              (r = this.bottom - (this.right - l) / p))
          : this.handle.includes("l") &&
            ((e = Zt(f.left - w, this.bounds.minLeft, this.bounds.maxLeft)),
            this.lockAspectRatio &&
              this.resizingOnX &&
              (s = this.top - (this.left - e) / p));
      const v = Zi(this.parentWidth, e, l),
        T = Qi(this.parentHeight, s, r);
      this.onResize(this.handle, e, s, v, T) !== !1 &&
        ((this.left = e),
        (this.top = s),
        (this.right = l),
        (this.bottom = r),
        (this.width = v),
        (this.height = T),
        this.$emit("resizing", this.left, this.top, this.width, this.height),
        (this.resizing = !0));
    },
    changeWidth(n) {
      const [e, s] = Ze(this.grid, n, 0, 1),
        l = Zt(
          this.parentWidth - e - this.left,
          this.bounds.minRight,
          this.bounds.maxRight
        );
      let r = this.bottom;
      this.lockAspectRatio &&
        (r = this.bottom - (this.right - l) / this.aspectFactor);
      const f = Zi(this.parentWidth, this.left, l),
        p = Qi(this.parentHeight, this.top, r);
      (this.right = l), (this.bottom = r), (this.width = f), (this.height = p);
    },
    changeHeight(n) {
      const [e, s] = Ze(this.grid, 0, n, 1),
        l = Zt(
          this.parentHeight - s - this.top,
          this.bounds.minBottom,
          this.bounds.maxBottom
        );
      let r = this.right;
      this.lockAspectRatio &&
        (r = this.right - (this.bottom - l) * this.aspectFactor);
      const f = Zi(this.parentWidth, this.left, r),
        p = Qi(this.parentHeight, this.top, l);
      (this.right = r), (this.bottom = l), (this.width = f), (this.height = p);
    },
    handleUp(n) {
      (this.handle = null),
        this.resetBoundsAndMouseState(),
        (this.dragEnable = !1),
        (this.resizeEnable = !1),
        this.resizing &&
          ((this.resizing = !1),
          this.$emit(
            "resizestop",
            this.left,
            this.top,
            this.width,
            this.height
          )),
        this.dragging &&
          ((this.dragging = !1), this.$emit("dragstop", this.left, this.top)),
        Ae(document.documentElement, Ce.move, this.handleResize);
    },
  },
};
var Uo = function () {
    var e = this,
      s = e._self._c;
    return s(
      "div",
      {
        class: [
          {
            [e.classNameActive]: e.enabled,
            [e.classNameDragging]: e.dragging,
            [e.classNameResizing]: e.resizing,
            [e.classNameDraggable]: e.draggable,
            [e.classNameResizable]: e.resizable,
          },
          e.className,
        ],
        style: e.style,
        on: { mousedown: e.elementMouseDown, touchstart: e.elementTouchDown },
      },
      [
        e._l(e.actualHandles, function (l) {
          return s(
            "div",
            {
              key: l,
              class: [e.classNameHandle, `${e.classNameHandle}-${l}`],
              style: { display: e.enabled ? "block" : "none" },
              on: {
                mousedown: function (r) {
                  return (
                    r.stopPropagation(), r.preventDefault(), e.handleDown(l, r)
                  );
                },
                touchstart: function (r) {
                  return (
                    r.stopPropagation(),
                    r.preventDefault(),
                    e.handleTouchDown(l, r)
                  );
                },
              },
            },
            [e._t(l)],
            2
          );
        }),
        e._t("default"),
      ],
      2
    );
  },
  Ko = [],
  Yo = kt(Wo, Uo, Ko, !1, null, null, null, null);
const Xo = Yo.exports,
  Go = he.extend({
    props: {
      searchable: { type: Boolean, required: !1, default: !1 },
      options: { type: Array, required: !0 },
      preSearchOptions: {
        type: Array,
        required: !1,
        default() {
          return [];
        },
      },
      multiple: { type: Boolean, default: !1 },
      value: {
        type: [Object, Array],
        default() {
          return [];
        },
      },
      trackBy: { type: String, default: void 0 },
      id: { type: String, default: void 0 },
      label: { type: String, default: void 0 },
      disabled: { type: Boolean, default: !1 },
      maxHeight: { type: Number, default: 300 },
      openDirection: { type: String, default: "" },
      allowEmpty: { type: Boolean, default: !1 },
      placeholder: { type: String, default: "" },
      tabindex: { type: Number, default: 0 },
      customLabel: {
        type: Function,
        default(n, e) {
          return Ji(n) ? "" : e ? n[e] : n;
        },
      },
      optionHeight: { type: Number, default: 30 },
    },
    data() {
      return {
        search: "",
        searchHeight: 40,
        isOpen: !1,
        prefferedOpenDirection: "below",
        optimizedHeight: this.maxHeight,
        internalValue:
          this.value || this.value === 0
            ? je(Array.isArray(this.value) ? this.value : [this.value])
            : [],
        pointer: 0,
        pointerDirty: !1,
      };
    },
    computed: {
      filteredOptions() {
        const e = (this.search || "").toLowerCase().trim();
        return Qo(this.options, e, this.label, this.customLabel);
      },
      allOptions() {
        return [...this.filteredOptions, ...this.preSearchOptions];
      },
      valueKeys() {
        return this.trackBy
          ? this.internalValue.map((n) => n[this.trackBy])
          : this.internalValue;
      },
      currentOptionLabel() {
        return this.multiple
          ? this.searchable
            ? ""
            : this.placeholder
          : this.internalValue.length
          ? this.getOptionLabel(this.internalValue[0])
          : this.placeholder;
      },
      isAbove() {
        return this.openDirection === "above" || this.openDirection === "top"
          ? !0
          : this.openDirection === "below" || this.openDirection === "bottom"
          ? !1
          : this.prefferedOpenDirection === "above";
      },
      pointerPosition() {
        return (
          this.pointer * this.optionHeight -
          (this.searchable ? this.searchHeight : 0)
        );
      },
      visibleElements() {
        return this.optimizedHeight / this.optionHeight;
      },
    },
    watch: {
      filteredOptions() {
        this.pointerAdjust();
      },
      isOpen() {
        this.pointerDirty = !1;
      },
      value(n) {
        this.internalValue = this.getInternalValue(n);
      },
    },
    methods: {
      getValue() {
        return this.multiple
          ? je(this.internalValue)
          : this.internalValue.length === 0
          ? null
          : je(this.internalValue[0]);
      },
      getInternalValue(n) {
        return n == null ? [] : this.multiple ? je(n) : je([n]);
      },
      activate() {
        this.isOpen ||
          this.disabled ||
          (this.adjustPosition(),
          (this.isOpen = !0),
          this.searchable
            ? this.$nextTick(() => this.$refs.search.focus())
            : this.$el.focus(),
          this.$emit("open", this.id));
      },
      deactivate() {
        this.isOpen &&
          ((this.isOpen = !1),
          this.searchable ? this.$refs.search.blur() : this.$el.blur(),
          (this.search = ""),
          this.$emit("close", this.getValue(), this.id));
      },
      toggle() {
        this.isOpen ? this.deactivate() : this.activate();
      },
      adjustPosition() {
        if (typeof window > "u") return;
        const n = this.$el;
        if (!n || !n.getBoundingClientRect) return;
        const e = n.getBoundingClientRect().top,
          s = window.innerHeight - n.getBoundingClientRect().bottom;
        s > this.maxHeight ||
        s > e ||
        this.openDirection === "below" ||
        this.openDirection === "bottom"
          ? ((this.prefferedOpenDirection = "below"),
            (this.optimizedHeight = Math.min(s - 40, this.maxHeight)))
          : ((this.prefferedOpenDirection = "above"),
            (this.optimizedHeight = Math.min(e - 40, this.maxHeight)));
      },
      getOptionLabel(n) {
        if (Ji(n)) return "";
        const e = this.customLabel(n, this.label);
        return Ji(e) ? "" : e;
      },
      updateSearch(n) {
        this.search = n;
      },
      handleInput(n) {
        n.target instanceof HTMLInputElement &&
          this.updateSearch(n.target.value);
      },
      select(n) {
        if (this.disabled) return;
        if (this.isSelected(n)) {
          this.removeElement(n);
          return;
        }
        this.multiple ? this.internalValue.push(n) : (this.internalValue = [n]),
          this.$emit("select", je(n), this.id),
          this.$emit("input", this.getValue(), this.id),
          (this.search = ""),
          this.deactivate();
      },
      removeElement(n) {
        if (this.disabled) return;
        if (!this.allowEmpty && this.internalValue.length <= 1) {
          this.deactivate();
          return;
        }
        const e =
          typeof n == "object"
            ? this.valueKeys.indexOf(n[this.trackBy])
            : this.valueKeys.indexOf(n);
        this.internalValue.splice(e, 1),
          this.$emit("input", this.getValue(), this.id),
          this.$emit("remove", je(n), this.id),
          this.deactivate();
      },
      isSelected(n) {
        const e = this.trackBy ? n[this.trackBy] : n;
        return this.valueKeys.indexOf(e) > -1;
      },
      optionHighlight(n, e) {
        return {
          "exposelect__option--highlight": n === this.pointer,
          "exposelect__option--selected": this.isSelected(e),
        };
      },
      addPointerElement() {
        this.allOptions.length > 0 &&
          this.select(this.allOptions[this.pointer]),
          this.pointerReset();
      },
      pointerForward() {
        if (this.pointer < this.allOptions.length - 1) {
          this.pointer++;
          const n = this.$refs.list;
          n.scrollTop <= this.pointerPosition &&
            (n.scrollTop = this.pointerPosition),
            this.allOptions[this.pointer].$isLabel && this.pointerForward();
        }
        this.pointerDirty = !0;
      },
      pointerBackward() {
        if (this.pointer > 0) {
          this.pointer--;
          const n = this.$refs.list;
          n.scrollTop >= this.pointerPosition &&
            (n.scrollTop = this.pointerPosition),
            this.allOptions[this.pointer].$isLabel && this.pointerBackward();
        } else this.allOptions[0].$isLabel && this.pointerForward();
        this.pointerDirty = !0;
      },
      pointerAdjust() {
        this.pointer >= this.allOptions.length - 1 &&
          (this.pointer = this.allOptions.length
            ? this.allOptions.length - 1
            : 0),
          this.allOptions.length > 0 &&
            this.allOptions[this.pointer].$isLabel &&
            this.pointerForward();
      },
      pointerReset() {
        (this.pointer = 0), this.$refs.list && (this.$refs.list.scrollTop = 0);
      },
      pointerSet(n) {
        (this.pointer = n), (this.pointerDirty = !0);
      },
    },
  });
function Ji(n) {
  return n === 0 ? !1 : Array.isArray(n) && n.length === 0 ? !0 : !n;
}
function Zo(n, e) {
  let s = n;
  return (
    s === void 0 && (s = "undefined"),
    s === null && (s = "null"),
    s === !1 && (s = "false"),
    s.toString().toLowerCase().indexOf(e.trim()) !== -1
  );
}
function Qo(n, e, s, l) {
  return n.filter((r) => Zo(l(r, s), e));
}
var Jo = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s(
        "div",
        {
          staticClass: "exposelect",
          class: {
            "exposelect--active": e.isOpen,
            "exposelect--disabled": e.disabled,
            "exposelect--above": e.isAbove,
          },
          attrs: { tabindex: e.tabindex },
          on: {
            focus: e.activate,
            blur: e.deactivate,
            keydown: [
              function (l) {
                return (!l.type.indexOf("key") &&
                  e._k(l.keyCode, "down", 40, l.key, ["Down", "ArrowDown"])) ||
                  l.target !== l.currentTarget
                  ? null
                  : (l.preventDefault(),
                    e.pointerForward.apply(null, arguments));
              },
              function (l) {
                return (!l.type.indexOf("key") &&
                  e._k(l.keyCode, "up", 38, l.key, ["Up", "ArrowUp"])) ||
                  l.target !== l.currentTarget
                  ? null
                  : (l.preventDefault(),
                    e.pointerBackward.apply(null, arguments));
              },
              function (l) {
                return (!l.type.indexOf("key") &&
                  e._k(l.keyCode, "enter", 13, l.key, "Enter") &&
                  e._k(l.keyCode, "tab", 9, l.key, "Tab")) ||
                  (l.stopPropagation(), l.target !== l.currentTarget)
                  ? null
                  : e.addPointerElement(l);
              },
            ],
          },
        },
        [
          s("div", { ref: "tags", staticClass: "exposelect__tags" }, [
            s("span", {
              staticClass: "exposelect__single",
              domProps: { textContent: e._s(e.currentOptionLabel) },
              on: {
                mousedown: function (l) {
                  return l.preventDefault(), e.toggle.apply(null, arguments);
                },
                focus: e.activate,
              },
            }),
          ]),
          s("Transition", { attrs: { name: "multiselect" } }, [
            s(
              "div",
              {
                directives: [
                  {
                    name: "show",
                    rawName: "v-show",
                    value: e.isOpen,
                    expression: "isOpen",
                  },
                ],
                ref: "list",
                staticClass: "exposelect__content-wrapper",
                style: { maxHeight: e.optimizedHeight + "px" },
                on: {
                  mousedown: function (l) {
                    l.preventDefault();
                  },
                },
              },
              [
                s(
                  "ul",
                  { staticClass: "exposelect__content" },
                  [
                    e._l(e.preSearchOptions, function (l, r) {
                      return s(
                        "li",
                        {
                          key: "pre_search" + l[e.trackBy],
                          staticClass:
                            "exposelect__element exposelect__element__presearch",
                          class: [
                            e.optionHighlight(r, l),
                            {
                              "exposelect__element__presearch--last":
                                r == e.preSearchOptions.length - 1,
                            },
                          ],
                        },
                        [
                          s(
                            "span",
                            {
                              staticClass: "exposelect__option",
                              on: {
                                click: function (f) {
                                  return f.stopPropagation(), e.select(l);
                                },
                                mouseenter: function (f) {
                                  return f.target !== f.currentTarget
                                    ? null
                                    : e.pointerSet(r);
                                },
                              },
                            },
                            [s("span", [e._v(e._s(e.getOptionLabel(l)))])]
                          ),
                        ]
                      );
                    }),
                    e.searchable
                      ? s(
                          "li",
                          {
                            staticClass:
                              "exposelect__element exposelect__search",
                          },
                          [
                            s("span", { staticClass: "exposelect__option" }, [
                              s("input", {
                                ref: "search",
                                staticClass: "exposelect__input",
                                attrs: {
                                  disabled: e.disabled,
                                  tabindex: e.tabindex,
                                  placeholder: "Search...",
                                  type: "text",
                                  autocomplete: "off",
                                },
                                domProps: { value: e.search },
                                on: {
                                  focus: function (l) {
                                    return (
                                      l.preventDefault(),
                                      e.activate.apply(null, arguments)
                                    );
                                  },
                                  blur: function (l) {
                                    return (
                                      l.preventDefault(),
                                      e.deactivate.apply(null, arguments)
                                    );
                                  },
                                  keyup: function (l) {
                                    return !l.type.indexOf("key") &&
                                      e._k(l.keyCode, "esc", 27, l.key, [
                                        "Esc",
                                        "Escape",
                                      ])
                                      ? null
                                      : e.deactivate.apply(null, arguments);
                                  },
                                  keydown: [
                                    function (l) {
                                      return !l.type.indexOf("key") &&
                                        e._k(l.keyCode, "down", 40, l.key, [
                                          "Down",
                                          "ArrowDown",
                                        ])
                                        ? null
                                        : (l.preventDefault(),
                                          e.pointerForward.apply(
                                            null,
                                            arguments
                                          ));
                                    },
                                    function (l) {
                                      return !l.type.indexOf("key") &&
                                        e._k(l.keyCode, "up", 38, l.key, [
                                          "Up",
                                          "ArrowUp",
                                        ])
                                        ? null
                                        : (l.preventDefault(),
                                          e.pointerBackward.apply(
                                            null,
                                            arguments
                                          ));
                                    },
                                    function (l) {
                                      return (!l.type.indexOf("key") &&
                                        e._k(
                                          l.keyCode,
                                          "enter",
                                          13,
                                          l.key,
                                          "Enter"
                                        )) ||
                                        (l.preventDefault(),
                                        l.stopPropagation(),
                                        l.target !== l.currentTarget)
                                        ? null
                                        : e.addPointerElement(l);
                                    },
                                  ],
                                  input: e.handleInput,
                                },
                              }),
                            ]),
                          ]
                        )
                      : e._e(),
                    e._l(e.filteredOptions, function (l, r) {
                      return s(
                        "li",
                        {
                          key: l[e.trackBy],
                          staticClass: "exposelect__element",
                          class: e.optionHighlight(
                            r + e.preSearchOptions.length,
                            l
                          ),
                        },
                        [
                          s(
                            "span",
                            {
                              staticClass: "exposelect__option",
                              on: {
                                click: function (f) {
                                  return f.stopPropagation(), e.select(l);
                                },
                                mouseenter: function (f) {
                                  return f.target !== f.currentTarget
                                    ? null
                                    : e.pointerSet(
                                        r + e.preSearchOptions.length
                                      );
                                },
                              },
                            },
                            [s("span", [e._v(e._s(e.getOptionLabel(l)))])]
                          ),
                        ]
                      );
                    }),
                  ],
                  2
                ),
              ]
            ),
          ]),
        ],
        1
      )
    );
  },
  ta = [],
  ea = kt(Go, Jo, ta, !1, null, "2fa9c9d9", null, null);
const ia = ea.exports,
  ra = Qt.extend({
    components: { ExpoSelect: ia },
    props: {
      sourceArtboard: { type: Object, required: !0 },
      actionType: { type: Number, required: !1, default: void 0 },
      value: { type: String, required: !1, default: void 0 },
    },
    computed: {
      targetArtboard: {
        get() {
          const n = this.value,
            e = this.artboardSelectOptions.find((s) => s.value.Id === n);
          return e !== void 0 ? e : this.getNonArtboardSelectionOption;
        },
        set(n) {
          n ? this.setNonArtboardSelectionOption(n) : this.$emit("input", "");
        },
      },
      allArtboardSelectOptions() {
        return [...this.shortcutSelectOptions, ...this.artboardSelectOptions];
      },
      shortcutSelectOptions() {
        return [
          this.previousArtboardOption,
          this.nextArtboardOption,
          this.previousHistoryArtboardOption,
          this.externalUrlArtboardOption,
        ];
      },
      artboardSelectOptions() {
        if (!this.currentProject) return [];
        const n = this.currentProject;
        return Object.keys(n.artboards)
          .map((s) => n.artboards[s])
          .map((s) => ({
            label: this.constructArtboardName(s),
            id: s.Id,
            value: s,
            actionType: it.SetPanelState,
          }));
      },
      previousArtboardOption() {
        const n = this.sourceArtboard,
          e = this.$store.getters.previousArtboard(n.Id);
        return this.toArtboardOption(
          { ...e, Id: "previous-artboard" },
          "Previous Screen",
          it.PreviousScreen
        );
      },
      nextArtboardOption() {
        const n = this.sourceArtboard,
          e = this.$store.getters.nextArtboard(n.Id);
        return this.toArtboardOption(
          { ...e, Id: "next-artboard" },
          "Next Screen",
          it.NextScreen
        );
      },
      previousHistoryArtboardOption() {
        const n = this.sourceArtboard;
        return this.toArtboardOption(
          { ...n, Id: "previous-history-artboard" },
          "Previous Screen in History",
          it.PreviousHistoryScreen
        );
      },
      pointOnScreenArtboardOption() {
        const n = this.sourceArtboard;
        return this.toArtboardOption(
          { ...n, Id: "point-on-screen" },
          "Point on Screen",
          it.PointOnScreen
        );
      },
      externalUrlArtboardOption() {
        const n = this.sourceArtboard;
        return this.toArtboardOption(
          { ...n, Id: "external-url" },
          "External Url",
          it.ExternalUrl
        );
      },
      getNonArtboardSelectionOption() {
        switch (this.actionType) {
          case it.PreviousScreen:
            return this.previousArtboardOption;
          case it.NextScreen:
            return this.nextArtboardOption;
          case it.PreviousHistoryScreen:
            return this.previousHistoryArtboardOption;
          case it.PointOnScreen:
            return this.pointOnScreenArtboardOption;
          case it.ExternalUrl:
            return this.externalUrlArtboardOption;
          default:
            return this.toArtboardOption(void 0, "");
        }
      },
    },
    methods: {
      constructArtboardName(n) {
        if (!this.currentProject) return "";
        const e = this.currentProject.assets[n.AssetId];
        return n.Name === "" || n.Name == null ? e.OriginalFileName : n.Name;
      },
      toArtboardOption(n, e, s = it.SetPanelState) {
        if (n) {
          const l = this.artboardSelectOptions.find((r) => r.id === n.Id);
          return l
            ? { label: e, id: l.id, value: l.value, actionType: s }
            : { label: e, id: n.Id, value: n, actionType: s };
        }
        return { label: e, id: "", value: {}, actionType: s };
      },
      setNonArtboardSelectionOption(n) {
        switch (n.actionType) {
          case it.PreviousScreen:
            this.$emit("actionType", it.PreviousScreen);
            break;
          case it.NextScreen:
            this.$emit("actionType", it.NextScreen);
            break;
          case it.PreviousHistoryScreen:
            this.$emit("actionType", it.PreviousHistoryScreen);
            break;
          case it.PointOnScreen:
            this.$emit("actionType", it.PointOnScreen);
            break;
          case it.ExternalUrl:
            this.$emit("actionType", it.ExternalUrl);
            break;
          default:
            this.$emit("actionType", it.SetPanelState, n.value.Id);
        }
      },
      open(...n) {
        this.$emit("open", ...n);
      },
      close(...n) {
        this.$emit("close", ...n);
      },
    },
  });
var na = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s(
        "div",
        [
          s("ExpoSelect", {
            attrs: {
              searchable: !0,
              "pre-search-options": e.shortcutSelectOptions,
              options: e.artboardSelectOptions,
              "track-by": "id",
              label: "label",
            },
            on: { open: e.open, close: e.close },
            model: {
              value: e.targetArtboard,
              callback: function (l) {
                e.targetArtboard = l;
              },
              expression: "targetArtboard",
            },
          }),
        ],
        1
      )
    );
  },
  sa = [],
  oa = kt(ra, na, sa, !1, null, null, null, null);
const aa = oa.exports,
  ua = he.extend({
    components: { AxButton: We, AxForm: zr, AxInput: qr },
    props: { artboard: { type: Object, required: !0 } },
    data() {
      return { model: { newMasterName: "" } };
    },
    methods: {
      cancel() {
        (this.model = { newMasterName: "" }), this.$emit("closePopup");
      },
      submit({ values: n }) {
        return new Promise((e, s) => {
          try {
            this.$emit("createMaster", {
              name: n.newMasterName,
              artboard: this.artboard,
              callback: (l) => {
                this.$emit("selectMaster", l), this.cancel(), e();
              },
            });
          } catch {
            s();
          }
        });
      },
    },
  });
var la = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s(
        "div",
        { staticClass: "master-create-bubble" },
        [
          s("AxForm", {
            attrs: { value: e.model, submit: e.submit },
            scopedSlots: e._u([
              {
                key: "default",
                fn: function ({ values: l, handleSubmit: r, submitting: f }) {
                  return [
                    s(
                      "form",
                      [
                        s("AxInput", {
                          staticClass: "p-0 new-master-name-input",
                          attrs: {
                            autofocus: "",
                            placeholder: "New Master Name",
                            "keep-placeholder": "",
                            autocomplete: "off",
                            "disable-label": "",
                          },
                          nativeOn: {
                            keydown: function (p) {
                              return !p.type.indexOf("key") &&
                                e._k(p.keyCode, "esc", 27, p.key, [
                                  "Esc",
                                  "Escape",
                                ])
                                ? null
                                : e.cancel.apply(null, arguments);
                            },
                          },
                          model: {
                            value: l.newMasterName,
                            callback: function (p) {
                              e.$set(l, "newMasterName", p);
                            },
                            expression: "values.newMasterName",
                          },
                        }),
                        s(
                          "div",
                          {
                            staticClass:
                              "d-flex align-items-center justify-content-between",
                          },
                          [
                            s(
                              "AxButton",
                              {
                                attrs: { color: "link", small: "" },
                                on: { click: e.cancel },
                              },
                              [e._v(" Cancel ")]
                            ),
                            s(
                              "AxButton",
                              {
                                attrs: {
                                  small: "",
                                  type: "submit",
                                  color: "primary",
                                  loading: f,
                                },
                                on: {
                                  click: function (p) {
                                    return (
                                      p.preventDefault(),
                                      r.apply(null, arguments)
                                    );
                                  },
                                },
                              },
                              [e._v(" Save ")]
                            ),
                          ],
                          1
                        ),
                      ],
                      1
                    ),
                  ];
                },
              },
            ]),
          }),
        ],
        1
      )
    );
  },
  ca = [],
  fa = kt(ua, la, ca, !1, null, "921cc163", null, null);
const da = fa.exports,
  tn = { Type: de.Click, Name: "Click / Tap" },
  ha = { Type: Ht.None, Name: "None" },
  en = { Type: fe.None, Name: "None" },
  pa = Oi(
    [
      tn,
      { Type: de.DoubleClick, Name: "Double Click / Double Tap" },
      { Type: de.SwipeRight, Name: "Swipe Right" },
      { Type: de.SwipeLeft, Name: "Swipe Left" },
      { Type: de.SwipeUp, Name: "Swipe Up" },
      { Type: de.SwipeDown, Name: "Swipe Down" },
    ],
    (n) => n,
    (n) => n.Name,
    (n) => n.Type
  ),
  ga = Oi(
    [
      en,
      { Type: Ht.Fade, Name: "Fade" },
      { Type: Ht.PushRight, Name: "Push Right" },
      { Type: Ht.PushLeft, Name: "Push Left" },
      { Type: Ht.SlideRight, Name: "Slide Right" },
      { Type: Ht.SlideLeft, Name: "Slide Left" },
      { Type: Ht.SlideUp, Name: "Slide Up" },
      { Type: Ht.SlideDown, Name: "Slide Down" },
      { Type: Ht.FlipRight, Name: "Flip Right" },
      { Type: Ht.FlipLeft, Name: "Flip Left" },
      { Type: Ht.FlipUp, Name: "Flip Up" },
      { Type: Ht.FlipDown, Name: "Flip Down" },
    ],
    (n) => n,
    (n) => n.Name,
    (n) => n.Type
  ),
  ma = Oi(
    [
      ha,
      { Type: fe.Swing, Name: "Swing" },
      { Type: fe.Linear, Name: "Linear" },
      { Type: fe.EaseInCubic, Name: "Ease In Cubic" },
      { Type: fe.EaseOutCubic, Name: "Ease Out Cubic" },
      { Type: fe.EaseInOutCubic, Name: "Ease In Out Cubic" },
      { Type: fe.Bounce, Name: "Bounce" },
      { Type: fe.Elastic, Name: "Elastic" },
    ],
    (n) => n,
    (n) => n.Name,
    (n) => n.Type
  ),
  va = Qt.extend({
    components: {
      AxInput: qr,
      ExpoArtboardTargetPicker: aa,
      ExpoNewMasterPopup: da,
      Multiselect: Qr,
      AxButton: We,
    },
    props: {
      artboard: { type: Object, required: !0 },
      action: { type: Object, required: !0 },
      isSaved: { type: Boolean, required: !0 },
    },
    data() {
      return {
        AnalyticsClickEvents: ds,
        actionModel: this.action,
        isNewMaster: !1,
        newMasterName: "",
        easings: ga,
        animations: ma,
        interactions: pa,
      };
    },
    watch: {
      actionModel: {
        handler(n) {
          (this.actionModel = n), this.$emit("change", this.actionModel);
        },
        deep: !0,
      },
      isSaveButtonEnabled: {
        handler() {
          this.$emit("validationChanged", this.isSaveButtonEnabled);
        },
      },
    },
    computed: {
      isSaveButtonEnabled() {
        return (
          (this.includeIntoMaster === !0 && this.selectedMaster !== void 0) ||
          this.includeIntoMaster === !1
        );
      },
      interactionType: {
        get() {
          const n = this.actionModel;
          if (n.Setting)
            switch (n.Setting.Type) {
              case it.ExternalUrl: {
                const e = n.Setting;
                if (e.Type)
                  return this.interactions.find(
                    (s) => s.value.Type === e.Interaction.Type
                  );
                break;
              }
              case it.PointOnScreen: {
                const e = n.Setting;
                if (e.Type)
                  return this.interactions.find(
                    (s) => s.value.Type === e.Interaction.Type
                  );
                break;
              }
              case it.PreviousHistoryScreen:
              case it.PreviousScreen:
              case it.NextScreen:
              case it.SetPanelState:
              default: {
                const e = n.Setting;
                if (e.Type !== null && e.Type !== void 0)
                  return this.interactions.find(
                    (s) => s.value.Type === e.Interaction.Type
                  );
                break;
              }
            }
          return jr(
            tn,
            (e) => e,
            (e) => e.Name,
            (e) => e.Type
          );
        },
        set(n) {
          const e = this.actionModel;
          switch (e.Setting.Type) {
            case it.ExternalUrl: {
              (e.Setting.Type = it.ExternalUrl),
                (e.Setting.Interaction.Type = n ? n.value.Type : de.Click);
              break;
            }
            case it.PointOnScreen: {
              (e.Setting.Type = it.PointOnScreen),
                (e.Setting.Interaction.Type = n ? n.value.Type : de.Click);
              break;
            }
            case it.PreviousHistoryScreen:
            case it.PreviousScreen:
            case it.NextScreen:
            case it.SetPanelState:
            default: {
              e.Setting.Interaction.Type = n ? n.value.Type : de.Click;
              break;
            }
          }
        },
      },
      easingTypes: {
        get() {
          const n = this.actionModel;
          if (n.Setting)
            switch (n.Setting.Type) {
              case it.PreviousHistoryScreen:
              case it.PreviousScreen:
              case it.NextScreen:
              case it.SetPanelState: {
                const e = n.Setting;
                if (
                  e.Interaction.Animation &&
                  e.Interaction.Animation.Out.Easing
                )
                  return this.easings.find(
                    (s) => s.value.Type === e.Interaction.Animation.Out.Easing
                  );
                break;
              }
              case it.ExternalUrl: {
                const e = n.Setting;
                if (
                  e.Interaction.Animation &&
                  e.Interaction.Animation.Out.Easing
                )
                  return this.easings.find(
                    (s) => s.value.Type === e.Interaction.Animation.Out.Easing
                  );
                break;
              }
              case it.PointOnScreen:
            }
          return jr(
            en,
            (e) => e,
            (e) => e.Name,
            (e) => e.Type
          );
        },
        set(n) {
          const e = this.actionModel;
          switch (e.Setting.Type) {
            case it.PreviousHistoryScreen:
            case it.PreviousScreen:
            case it.NextScreen:
            case it.SetPanelState: {
              const s = n ? n.value.Type : Ht.None;
              (e.Setting.Interaction.Animation.Out.Easing = s),
                (e.Setting.Interaction.Animation.In.Easing = s);
              break;
            }
            case it.ExternalUrl: {
              const s = n ? n.value.Type : Ht.None;
              (e.Setting.Interaction.Animation.Out.Easing = s),
                (e.Setting.Interaction.Animation.In.Easing = s);
              break;
            }
            case it.PointOnScreen:
          }
        },
      },
      externalUrl: {
        get() {
          return this.actionModel.Setting;
        },
        set(n) {
          const e = this.actionModel.Setting;
          (e.Type = it.ExternalUrl), (e.Url = Pi(n.Url) ? "https://" : n.Url);
        },
      },
      pointOnScreen: {
        get() {
          const n = this.actionModel.Setting;
          return (
            (n.Location = n.Location ? n.Location : { X: 0, Y: 0 }),
            (n.IsSmoothScroll = !!n.IsSmoothScroll),
            n
          );
        },
        set(n) {
          const e = this.actionModel.Setting;
          (e.Type = it.PointOnScreen),
            e.Location
              ? ((e.Location.X = n.Location.X), (e.Location.Y = n.Location.Y))
              : (e.Location = { X: 0, Y: 0 }),
            (e.IsSmoothScroll = !!n.IsSmoothScroll);
        },
      },
      includeIntoMaster: {
        get() {
          return this.actionModel.IsMaster;
        },
        set(n) {
          const e = this.actionModel;
          n
            ? !e.IsMaster && this.mastersList.length !== 0
              ? (this.selectedMaster =
                  this.mastersList[this.mastersList.length - 1])
              : (e.IsMaster = !0)
            : ((e.ParentId = this.artboard.Id), (e.IsMaster = !1));
        },
      },
      selectedMaster: {
        get() {
          const n = this.actionModel;
          if (n.IsMaster)
            return this.mastersList.find((e) => e.id === n.ParentId);
        },
        set(n) {
          const e = this.actionModel,
            s = n === void 0 || n == null;
          (e.ParentId = s ? this.artboard.Id : n.id), (e.IsMaster = !s);
        },
      },
      relativeToBottom: {
        get() {
          const n = this.actionModel;
          return n.RelativeToBottom !== void 0 && n.RelativeToBottom !== null;
        },
        set(n) {
          const e = this.actionModel;
          e.RelativeToBottom = n
            ? this.artboard.Asset.Dimensions.Height -
              e.Hotspot.Start.Y -
              e.Hotspot.Dimensions.Height
            : void 0;
        },
      },
      isExternalUrlAction() {
        return this.isActionSelected(it.ExternalUrl);
      },
      isPointOnScreenAction() {
        return this.isActionSelected(it.PointOnScreen);
      },
      mastersList() {
        if (!this.currentProject) return [];
        const n = [];
        return (
          Object.values(this.currentProject.masters).forEach((e, s) => {
            n.push({ Type: e.Id, Name: e.Name });
          }),
          Oi(
            n,
            (e) => e,
            (e) => e.Name,
            (e) => e.Type
          )
        );
      },
    },
    methods: {
      castActionSetting(n, e) {
        switch (e) {
          case it.ExternalUrl:
            (n.Setting.Type = e), (n.Setting.Url = this.externalUrl.Url);
            break;
          case it.PointOnScreen:
            (n.Setting.Type = e), (n.Setting.Location = { X: 0, Y: 0 });
            break;
          case it.PreviousHistoryScreen:
          case it.SetPanelState:
          default:
            (n.Setting = n.Setting), (n.Setting.Type = e);
        }
        return n.Setting;
      },
      actionSelected(n, e = null) {
        const s = this.actionModel;
        (s.Type = n || it.SetPanelState),
          (s.Setting = this.castActionSetting(s, s.Type)),
          e !== null && (s.Setting.TargetArtboardId = e);
      },
      isActionSelected(n) {
        const e = this.actionModel;
        return e && e.Type === n;
      },
      updateExternalUrlAction() {
        const n = this.actionModel;
        n.Setting.Url = this.externalUrl.Url;
      },
      updatePointOnScreenAction() {
        const n = this.actionModel;
        (n.Setting.Location = this.pointOnScreen.Location),
          (n.Setting.IsSmoothScroll = this.pointOnScreen.IsSmoothScroll);
      },
      newMasterBtnClick() {
        (this.isNewMaster = !this.isNewMaster), (this.newMasterName = "");
      },
      selectMaster(n) {
        this.selectedMaster = this.mastersList.find((e) => e.id === n.Id);
      },
    },
  });
var ya = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s("div", { staticClass: "body-section" }, [
        s("div", { staticClass: "section" }, [
          e._m(0),
          s(
            "div",
            { staticClass: "section-control" },
            [
              s("Multiselect", {
                staticClass: "hs-settings-multiselect",
                attrs: {
                  options: e.interactions,
                  "show-labels": !1,
                  "track-by": "id",
                  label: "label",
                },
                scopedSlots: e._u([
                  {
                    key: "caret",
                    fn: function () {
                      return [s("span")];
                    },
                    proxy: !0,
                  },
                ]),
                model: {
                  value: e.interactionType,
                  callback: function (l) {
                    e.interactionType = l;
                  },
                  expression: "interactionType",
                },
              }),
            ],
            1
          ),
        ]),
        s("div", { staticClass: "section" }, [
          e._m(1),
          s(
            "div",
            { staticClass: "section-control" },
            [
              s("ExpoArtboardTargetPicker", {
                staticClass: "hs-settings-target-picker",
                attrs: {
                  "source-artboard": e.artboard,
                  "action-type": e.actionModel.Type,
                },
                on: { actionType: e.actionSelected },
                model: {
                  value: e.actionModel.Setting.TargetArtboardId,
                  callback: function (l) {
                    e.$set(e.actionModel.Setting, "TargetArtboardId", l);
                  },
                  expression: "actionModel.Setting.TargetArtboardId",
                },
              }),
            ],
            1
          ),
        ]),
        e.isExternalUrlAction
          ? s("div", { staticClass: "section" }, [
              e._m(2),
              s(
                "div",
                { staticClass: "section-control" },
                [
                  s("AxInput", {
                    staticClass: "p-0 m-0",
                    attrs: {
                      placeholder: "https://",
                      autocomplete: "off",
                      "disable-label": "",
                    },
                    on: { blur: e.updateExternalUrlAction },
                    model: {
                      value: e.externalUrl.Url,
                      callback: function (l) {
                        e.$set(e.externalUrl, "Url", l);
                      },
                      expression: "externalUrl.Url",
                    },
                  }),
                ],
                1
              ),
            ])
          : e._e(),
        e.isPointOnScreenAction
          ? s("div", { staticClass: "section" }, [
              e._m(3),
              s("div", { staticClass: "section-control" }, [
                s("div", { staticClass: "pointOnScreenCoordinate" }, [
                  s("label", { attrs: { for: "pointOnScreenY" } }, [
                    e._v(" Y: "),
                  ]),
                  s("input", {
                    directives: [
                      {
                        name: "model",
                        rawName: "v-model",
                        value: e.pointOnScreen.Location.Y,
                        expression: "pointOnScreen.Location.Y",
                      },
                    ],
                    ref: "pointOnScreenY",
                    attrs: {
                      id: "pointOnScreenY",
                      placeholder: "0",
                      type: "number",
                      maxlength: "4",
                    },
                    domProps: { value: e.pointOnScreen.Location.Y },
                    on: {
                      blur: e.updatePointOnScreenAction,
                      input: function (l) {
                        l.target.composing ||
                          e.$set(e.pointOnScreen.Location, "Y", l.target.value);
                      },
                    },
                  }),
                ]),
                s("input", { attrs: { type: "button", value: "Anchor" } }),
              ]),
              s(
                "div",
                {
                  staticClass: "section-control",
                  attrs: { id: "smoothScrollSection" },
                },
                [
                  s("label", [
                    s("input", {
                      directives: [
                        {
                          name: "model",
                          rawName: "v-model",
                          value: e.pointOnScreen.IsSmoothScroll,
                          expression: "pointOnScreen.IsSmoothScroll",
                        },
                      ],
                      attrs: { type: "checkbox" },
                      domProps: {
                        checked: Array.isArray(e.pointOnScreen.IsSmoothScroll)
                          ? e._i(e.pointOnScreen.IsSmoothScroll, null) > -1
                          : e.pointOnScreen.IsSmoothScroll,
                      },
                      on: {
                        change: function (l) {
                          var r = e.pointOnScreen.IsSmoothScroll,
                            f = l.target,
                            p = !!f.checked;
                          if (Array.isArray(r)) {
                            var g = null,
                              c = e._i(r, g);
                            f.checked
                              ? c < 0 &&
                                e.$set(
                                  e.pointOnScreen,
                                  "IsSmoothScroll",
                                  r.concat([g])
                                )
                              : c > -1 &&
                                e.$set(
                                  e.pointOnScreen,
                                  "IsSmoothScroll",
                                  r.slice(0, c).concat(r.slice(c + 1))
                                );
                          } else e.$set(e.pointOnScreen, "IsSmoothScroll", p);
                        },
                      },
                    }),
                    e._v(" Smooth Scrolling "),
                  ]),
                ]
              ),
            ])
          : e._e(),
        !e.isExternalUrlAction && !e.isPointOnScreenAction
          ? s("div", { staticClass: "section" }, [
              e._m(4),
              s(
                "div",
                { staticClass: "section-control" },
                [
                  s("Multiselect", {
                    staticClass: "hs-settings-multiselect",
                    attrs: {
                      options: e.easings,
                      "show-labels": !1,
                      "track-by": "id",
                      label: "label",
                    },
                    scopedSlots: e._u(
                      [
                        {
                          key: "caret",
                          fn: function () {
                            return [s("span")];
                          },
                          proxy: !0,
                        },
                      ],
                      null,
                      !1,
                      3172709477
                    ),
                    model: {
                      value: e.easingTypes,
                      callback: function (l) {
                        e.easingTypes = l;
                      },
                      expression: "easingTypes",
                    },
                  }),
                ],
                1
              ),
            ])
          : e._e(),
        s("div", { staticClass: "section" }, [
          s("label", [
            s("input", {
              directives: [
                {
                  name: "model",
                  rawName: "v-model",
                  value: e.includeIntoMaster,
                  expression: "includeIntoMaster",
                },
              ],
              staticClass: "add-hotspot-in-master-checkbox",
              attrs: { type: "checkbox" },
              domProps: {
                checked: Array.isArray(e.includeIntoMaster)
                  ? e._i(e.includeIntoMaster, null) > -1
                  : e.includeIntoMaster,
              },
              on: {
                change: function (l) {
                  var r = e.includeIntoMaster,
                    f = l.target,
                    p = !!f.checked;
                  if (Array.isArray(r)) {
                    var g = null,
                      c = e._i(r, g);
                    f.checked
                      ? c < 0 && (e.includeIntoMaster = r.concat([g]))
                      : c > -1 &&
                        (e.includeIntoMaster = r
                          .slice(0, c)
                          .concat(r.slice(c + 1)));
                  } else e.includeIntoMaster = p;
                },
              },
            }),
            e._v(" Add hotspot in master "),
          ]),
          e.includeIntoMaster
            ? s(
                "div",
                { staticClass: "masterSettingsContainer" },
                [
                  s(
                    "div",
                    { staticClass: "d-flex align-items-center" },
                    [
                      s("Multiselect", {
                        staticClass: "hs-settings-multiselect submenu",
                        attrs: {
                          options: e.mastersList,
                          "show-labels": !1,
                          "track-by": "id",
                          label: "label",
                          placeholder: "Select Master",
                        },
                        scopedSlots: e._u(
                          [
                            {
                              key: "caret",
                              fn: function () {
                                return [s("span")];
                              },
                              proxy: !0,
                            },
                          ],
                          null,
                          !1,
                          3172709477
                        ),
                        model: {
                          value: e.selectedMaster,
                          callback: function (l) {
                            e.selectedMaster = l;
                          },
                          expression: "selectedMaster",
                        },
                      }),
                      s(
                        "AxButton",
                        {
                          staticClass: "m-auto",
                          attrs: { color: "link", highlighted: "", medium: "" },
                          on: { click: e.newMasterBtnClick },
                        },
                        [e._v(" Create New ")]
                      ),
                    ],
                    1
                  ),
                  e.isNewMaster
                    ? s("ExpoNewMasterPopup", {
                        attrs: { artboard: e.artboard },
                        on: {
                          createMaster: function (l) {
                            return e.$emit("create", l);
                          },
                          selectMaster: e.selectMaster,
                          closePopup: e.newMasterBtnClick,
                        },
                      })
                    : e._e(),
                  s("label", { staticClass: "relativeToBottomLabel" }, [
                    s("input", {
                      directives: [
                        {
                          name: "model",
                          rawName: "v-model",
                          value: e.relativeToBottom,
                          expression: "relativeToBottom",
                        },
                      ],
                      staticClass: "relativeToBottomInput",
                      attrs: { type: "checkbox" },
                      domProps: {
                        checked: Array.isArray(e.relativeToBottom)
                          ? e._i(e.relativeToBottom, null) > -1
                          : e.relativeToBottom,
                      },
                      on: {
                        change: function (l) {
                          var r = e.relativeToBottom,
                            f = l.target,
                            p = !!f.checked;
                          if (Array.isArray(r)) {
                            var g = null,
                              c = e._i(r, g);
                            f.checked
                              ? c < 0 && (e.relativeToBottom = r.concat([g]))
                              : c > -1 &&
                                (e.relativeToBottom = r
                                  .slice(0, c)
                                  .concat(r.slice(c + 1)));
                          } else e.relativeToBottom = p;
                        },
                      },
                    }),
                    e._v(" Position relative to bottom "),
                  ]),
                ],
                1
              )
            : e._e(),
        ]),
      ])
    );
  },
  ba = [
    function () {
      var n = this,
        e = n._self._c;
      return (
        n._self._setupProxy,
        e("div", { staticClass: "section-label" }, [
          e("label", [n._v("Trigger:")]),
        ])
      );
    },
    function () {
      var n = this,
        e = n._self._c;
      return (
        n._self._setupProxy,
        e("div", { staticClass: "section-label" }, [
          e("label", [n._v("Link to:")]),
        ])
      );
    },
    function () {
      var n = this,
        e = n._self._c;
      return (
        n._self._setupProxy,
        e("div", { staticClass: "section-label" }, [e("label", [n._v("URL:")])])
      );
    },
    function () {
      var n = this,
        e = n._self._c;
      return (
        n._self._setupProxy,
        e("div", { staticClass: "section-label" }, [
          e("label", [n._v("Location:")]),
        ])
      );
    },
    function () {
      var n = this,
        e = n._self._c;
      return (
        n._self._setupProxy,
        e("div", { staticClass: "section-label" }, [
          e("label", [n._v("Animate:")]),
        ])
      );
    },
  ],
  xa = kt(va, ya, ba, !1, null, "e494584a", null, null);
const Sa = xa.exports,
  _a = Qt.extend({
    directives: { onClickAway: Fr },
    components: {
      ExpoArtboardHotspotSettings: Sa,
      VueDraggableResizable: Xo,
      AxForm: zr,
      AxButton: We,
      AxIcon: di,
    },
    props: {
      action: fi({ required: !0 }),
      artboard: fi({ required: !0 }),
      visibleAssetDimensions: fi({ required: !0 }),
      getOriginalAction: { type: Function, required: !0 },
    },
    data() {
      return {
        settingsWidth: 250,
        settingsOpenDirection: "right",
        settingsBubbleOnceToggled: !1,
        isDragging: !1,
        enableDragging: !0,
        actionModel: this.action,
        isSaveButtonEnabled: !0,
        startingPosition: [0, 0],
      };
    },
    computed: {
      isSaved() {
        const n = this.action;
        return Gi(n);
      },
      isSavedAndMaster() {
        const n = this.action;
        return hs(n);
      },
      settingsOpened() {
        if (!this.currentProject) return !1;
        const { artboardHotspotOpenedMenu: n } = this.currentProject,
          e = this.artboard,
          s = this.action;
        return n.artboardId === e.Id && n.actionId === s.Id;
      },
      rx() {
        if (!this.currentProject) return 1;
        const { width: n } = this.visibleAssetDimensions;
        let e;
        return (
          this.platform && this.platform.Device === Vr.Auto
            ? (e = this.artboard.Asset.Dimensions.Width)
            : (e = this.currentProject.projectDimensions.width),
          e / n
        );
      },
      ry() {
        return this.rx;
      },
      trueRy() {
        const { height: n } = this.visibleAssetDimensions,
          { Height: e } = this.artboard.Asset.Dimensions;
        return e / n;
      },
      dimensions() {
        const n = this.artboard,
          e = this.action,
          s = e.Hotspot,
          l = this.rx,
          r = this.ry;
        let f = s.Start.Y;
        if (
          (e.IsMaster &&
            e.RelativeToBottom !== void 0 &&
            e.RelativeToBottom !== null &&
            (f =
              n.Asset.Dimensions.Height -
              s.Dimensions.Height -
              e.RelativeToBottom),
          f < 0)
        )
          f = 0;
        else if (
          e.IsMaster &&
          e.RelativeToBottom !== void 0 &&
          e.RelativeToBottom !== null
        ) {
          const p =
              (n.Asset.Dimensions.Height - e.RelativeToBottom) / this.trueRy,
            g = s.Dimensions.Height / r;
          f = p - g;
        } else f /= r;
        return (
          f < 0 && (f = 0),
          {
            height: li(s.Dimensions.Height / r),
            width: li(s.Dimensions.Width / l),
            top: li(f),
            left: li(s.Start.X / l),
          }
        );
      },
      hasDimensions() {
        const n = this.dimensions;
        return n.height > 0 && n.width > 0;
      },
      cssClasses() {
        return {
          masterHs: this.isSavedAndMaster,
          savedHs: this.isSaved && !this.isSavedAndMaster,
          newHs: !this.isSaved,
        };
      },
      isLeft() {
        return this.settingsOpenDirection === "left";
      },
      bubbleCssClasses() {
        return this.isLeft
          ? ["hotspot-settings-bubble--left", "axContextSpeechBubbleRightTop"]
          : ["hotspot-settings-bubble--right", "axContextSpeechBubbleLeftTop"];
      },
      zIndex() {
        return this.settingsOpened ? 1051 : 1050;
      },
    },
    watch: {
      visibleAssetDimensions() {
        (this.enableDragging = !1),
          this.$nextTick(() => {
            this.enableDragging = !0;
          });
      },
    },
    mounted() {
      const n = this.action;
      Gi(n) || this.openSettings();
    },
    methods: {
      validationChanged(n) {
        this.isSaveButtonEnabled = n;
      },
      actionChanged(n) {
        this.actionModel = n;
      },
      async saveAction(n) {
        if (!this.currentProject) return;
        const { shortcut: e } = this.currentProject,
          s = this.artboard,
          l = this.getOriginalAction(n.Id);
        if (n.IsMaster) {
          const r = this.currentProject.masters[n.ParentId],
            f =
              s.Asset.Dimensions.Height -
              n.Hotspot.Start.Y -
              n.Hotspot.Dimensions.Height,
            p =
              n.RelativeToBottom === void 0 || n.RelativeToBottom === null
                ? void 0
                : f < 0
                ? 0
                : f;
          n.RelativeToBottom !== void 0 &&
            n.RelativeToBottom !== null &&
            (n.Hotspot.Start.Y =
              s.Asset.Dimensions.Height - p - n.Hotspot.Dimensions.Height),
            await this.$store.dispatch(new ps(e, s, r, l, n));
        } else await this.$store.dispatch(new gs(e, s, l, n));
        this.closeSettings();
      },
      async removeAction() {
        if (!this.currentProject) return;
        const n = this.actionModel,
          { shortcut: e } = this.currentProject,
          s = this.artboard,
          l = this.currentProject.masters[n.ParentId];
        n.IsMaster && l !== void 0
          ? await this.$store.dispatch(new ms(e, l, n))
          : await this.$store.dispatch(new vs(e, s, n)),
          this.closeSettings();
      },
      async createMaster(n) {
        if (!this.currentProject) return;
        const { shortcut: e } = this.currentProject;
        await this.$store.dispatch(new ys(e, n));
      },
      selectSingle() {
        if (!this.currentProject) return;
        const { shortcut: n } = this.currentProject,
          { Id: e } = this.artboard;
        this.$store.commit(new Wr(n, e));
      },
      cloneDeep(n) {
        return je(n);
      },
      hotspotMousedown(n) {
        (this.isDragging = !1), (this.startingPosition = [n.pageX, n.pageY]);
      },
      hotspotMousemove(n) {
        !(
          n.pageX === this.startingPosition[0] &&
          n.pageY === this.startingPosition[1]
        ) && (this.isDragging = !0);
      },
      hotspotMouseup() {
        this.isDragging || this.toggleSettings(),
          (this.isDragging = !1),
          (this.startingPosition = [0, 0]);
      },
      openSettings() {
        this.toggleSettings(!0);
      },
      closeSettings() {
        this.toggleSettings(!1);
      },
      toggleSettings(n) {
        if (!this.currentProject) return;
        n === void 0 && (n = !this.settingsOpened),
          this.$emit("selectArtboard"),
          (this.settingsBubbleOnceToggled = !0);
        const { shortcut: e } = this.currentProject,
          s = this.artboard,
          l = this.action;
        this.$store.commit(new Ur(e, s.Id, l.Id, n)),
          n
            ? (this.adjustPosition(),
              this.$nextTick(() => {
                const r = this.$refs.settingsBubble;
                r && r.focus();
              }))
            : this.$nextTick(() => {
                const r = this.$refs.hotspot;
                r && r.focus();
              });
      },
      adjustPosition() {
        if (typeof window > "u") return;
        const n = this.$el;
        if (!n || !n.getBoundingClientRect) return;
        const e = n.getBoundingClientRect().left,
          s = window.innerWidth - n.getBoundingClientRect().right;
        s > this.settingsWidth || s > e
          ? (this.settingsOpenDirection = "right")
          : (this.settingsOpenDirection = "left");
      },
      cancel() {
        this.closeSettings(), this.$emit("cancel", this.action);
      },
      updateDimensions(n, e, s, l) {
        if (
          !this.currentProject ||
          wa(this.dimensions, { left: n, top: e, width: s, height: l })
        )
          return;
        const { shortcut: r } = this.currentProject,
          f = this.artboard,
          p = this.action,
          g = this.rx,
          c = this.ry,
          w = { x: n * g, y: e * c, height: l * c, width: s * g };
        if (p.IsMaster) {
          const S = this.currentProject.masters[p.ParentId],
            v =
              f.Asset.Dimensions.Height - ((w.y + w.height) / c) * this.trueRy,
            T =
              p.RelativeToBottom === void 0 || p.RelativeToBottom === null
                ? void 0
                : v < 0
                ? 0
                : v;
          p.RelativeToBottom !== void 0 &&
            p.RelativeToBottom !== null &&
            (w.y = f.Asset.Dimensions.Height - T - w.height),
            this.$store.commit(new bs(r, S.Id, p.Id, w, T));
        } else this.$store.commit(new xs(r, f.Id, p.Id, w));
      },
      resizing(n, e, s, l) {
        this.updateDimensions(n, e, s, l);
      },
      dragging(n, e) {
        this.updateDimensions(
          n,
          e,
          this.dimensions.width,
          this.dimensions.height
        );
      },
      resized(n, e, s, l) {
        this.saveDimensions(n, e, s, l);
      },
      dragged(n, e) {
        this.isDragging &&
          this.saveDimensions(
            n,
            e,
            this.dimensions.width,
            this.dimensions.height
          );
      },
      saveDimensions(n, e, s, l) {
        const r = this.action;
        this.updateDimensions(n, e, s, l), Gi(r) && this.saveAction(r);
      },
    },
  }),
  Ti = 1;
function wa(n, e) {
  return (
    Math.abs(n.height - e.height) < Ti &&
    Math.abs(n.width - e.width) < Ti &&
    Math.abs(n.top - e.top) < Ti &&
    Math.abs(n.left - e.left) < Ti
  );
}
var Aa = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      e.hasDimensions && e.enableDragging
        ? s(
            "VueDraggableResizable",
            {
              attrs: {
                parent: "",
                w: e.dimensions.width,
                h: e.dimensions.height,
                x: e.dimensions.left,
                y: e.dimensions.top,
                z: e.zIndex,
                "min-height": 1,
                "min-width": 1,
                "drag-handle": ".hotspot",
                "drag-cancel": ".hotspot-settings-bubble",
                "class-name": "draggable-hotspot",
              },
              on: {
                resizestop: e.resized,
                resizing: e.resizing,
                dragging: e.dragging,
                dragstop: e.dragged,
              },
            },
            [
              s(
                "div",
                {
                  ref: "hotspot",
                  staticClass: "hotspot",
                  class: e.cssClasses,
                  attrs: { tabindex: "0" },
                  on: {
                    mousedown: function (l) {
                      return (!l.type.indexOf("key") &&
                        e._k(l.keyCode, "left", 37, l.key, [
                          "Left",
                          "ArrowLeft",
                        ])) ||
                        ("button" in l && l.button !== 0) ||
                        l.target !== l.currentTarget
                        ? null
                        : (l.preventDefault(),
                          e.hotspotMousedown.apply(null, arguments));
                    },
                    mousemove: function (l) {
                      return l.target !== l.currentTarget
                        ? null
                        : (l.preventDefault(),
                          e.hotspotMousemove.apply(null, arguments));
                    },
                    mouseup: function (l) {
                      return (!l.type.indexOf("key") &&
                        e._k(l.keyCode, "left", 37, l.key, [
                          "Left",
                          "ArrowLeft",
                        ])) ||
                        ("button" in l && l.button !== 0) ||
                        l.target !== l.currentTarget
                        ? null
                        : (l.preventDefault(),
                          e.hotspotMouseup.apply(null, arguments));
                    },
                    click: function (l) {
                      l.stopPropagation();
                    },
                    keydown: function (l) {
                      return (!l.type.indexOf("key") &&
                        e._k(l.keyCode, "delete", [8, 46], l.key, [
                          "Backspace",
                          "Delete",
                          "Del",
                        ])) ||
                        l.target !== l.currentTarget
                        ? null
                        : e.removeAction.apply(null, arguments);
                    },
                  },
                },
                [
                  e.settingsOpened
                    ? s(
                        "div",
                        {
                          directives: [
                            {
                              name: "on-click-away",
                              rawName: "v-on-click-away",
                              value: e.cancel,
                              expression: "cancel",
                            },
                          ],
                          ref: "settingsBubble",
                          staticClass: "hotspot-settings-bubble",
                          class: e.bubbleCssClasses,
                          attrs: { tabindex: "0" },
                          on: {
                            keyup: function (l) {
                              return (!l.type.indexOf("key") &&
                                e._k(l.keyCode, "esc", 27, l.key, [
                                  "Esc",
                                  "Escape",
                                ])) ||
                                l.target !== l.currentTarget
                                ? null
                                : e.cancel.apply(null, arguments);
                            },
                            keydown: function (l) {
                              return (!l.type.indexOf("key") &&
                                e._k(l.keyCode, "delete", [8, 46], l.key, [
                                  "Backspace",
                                  "Delete",
                                  "Del",
                                ])) ||
                                l.target !== l.currentTarget
                                ? null
                                : e.removeAction.apply(null, arguments);
                            },
                          },
                        },
                        [
                          s("AxForm", {
                            staticClass: "expo-artboard-hotspot-settings",
                            attrs: {
                              submit: () => e.saveAction(e.actionModel),
                            },
                            scopedSlots: e._u(
                              [
                                {
                                  key: "default",
                                  fn: function ({
                                    handleSubmit: l,
                                    submitting: r,
                                  }) {
                                    return [
                                      s("form", [
                                        s(
                                          "div",
                                          [
                                            s(
                                              "div",
                                              {
                                                staticClass:
                                                  "header-section d-flex",
                                              },
                                              [
                                                s("h2", [
                                                  e._v("Add Interaction"),
                                                ]),
                                                s("AxIcon", {
                                                  staticClass: "ms-auto me-0",
                                                  attrs: { name: "close" },
                                                  on: {
                                                    click: function (f) {
                                                      return (
                                                        f.stopPropagation(),
                                                        f.preventDefault(),
                                                        e.cancel.apply(
                                                          null,
                                                          arguments
                                                        )
                                                      );
                                                    },
                                                  },
                                                }),
                                              ],
                                              1
                                            ),
                                            s("ExpoArtboardHotspotSettings", {
                                              attrs: {
                                                action: e.cloneDeep(e.action),
                                                artboard: e.artboard,
                                                "is-saved": e.isSaved,
                                              },
                                              on: {
                                                validationChanged:
                                                  e.validationChanged,
                                                change: e.actionChanged,
                                                create: e.createMaster,
                                              },
                                            }),
                                            s(
                                              "div",
                                              { staticClass: "footer-section" },
                                              [
                                                s(
                                                  "AxButton",
                                                  {
                                                    staticClass: "delete-link",
                                                    attrs: { color: "link" },
                                                    on: {
                                                      click: function (f) {
                                                        return (
                                                          f.stopPropagation(),
                                                          f.preventDefault(),
                                                          e.removeAction.apply(
                                                            null,
                                                            arguments
                                                          )
                                                        );
                                                      },
                                                    },
                                                  },
                                                  [e._v(" Delete ")]
                                                ),
                                                s(
                                                  "AxButton",
                                                  {
                                                    attrs: {
                                                      color: "primary",
                                                      type: "submit",
                                                      disabled:
                                                        !e.isSaveButtonEnabled ||
                                                        r,
                                                    },
                                                    on: {
                                                      click: function (f) {
                                                        return (
                                                          f.preventDefault(),
                                                          l.apply(
                                                            null,
                                                            arguments
                                                          )
                                                        );
                                                      },
                                                    },
                                                  },
                                                  [
                                                    e._v(
                                                      " " +
                                                        e._s(
                                                          e.isSaved
                                                            ? "Save"
                                                            : "Add Hotspot"
                                                        ) +
                                                        " "
                                                    ),
                                                  ]
                                                ),
                                              ],
                                              1
                                            ),
                                          ],
                                          1
                                        ),
                                      ]),
                                    ];
                                  },
                                },
                              ],
                              null,
                              !1,
                              736069654
                            ),
                          }),
                        ],
                        1
                      )
                    : e._e(),
                ]
              ),
            ]
          )
        : e._e()
    );
  },
  Ca = [],
  Ta = kt(_a, Aa, Ca, !1, null, "ed75a968", null, null);
const ka = Ta.exports;
Zs(Gr);
const Pa = Qt.extend({
  components: {
    ExpoArtboardContainer: bo,
    ExpoArtboardHotspot: ka,
    ExpoArtboardHeaderFooter: Fo,
  },
  props: {
    artboard: { type: Object, required: !0 },
    masters: { type: Object, required: !0 },
    readonly: { type: Boolean, required: !1, default: !1 },
    draggable: { type: Boolean, default: !0 },
    isActive: Boolean,
  },
  data() {
    return {
      loading: !0,
      success: !1,
      assetIsLoaded: !1,
      assetIsResized: !1,
      preloaderStyle: { paddingTop: "100%", width: "100%" },
      visibleAssetDimensions: { height: 0, width: 0 },
      selected: !1,
      isTooltipEnabled: !1,
    };
  },
  computed: {
    masterActions() {
      const n = [],
        e = this.artboard.MasterIds,
        s = this.masters;
      for (const l in e)
        if (s[e[l]]) {
          const r = s[e[l]].Actions;
          for (const f in r)
            if (Object.prototype.hasOwnProperty.call(r, f)) {
              const p = r[f];
              Pi(p.DeletedOn) && n.push(p);
            }
        }
      return n;
    },
    artboardActions() {
      const e = this.artboard.ActionPool.Actions,
        s = [];
      for (const l in e)
        if (Object.prototype.hasOwnProperty.call(e, l)) {
          const r = e[l];
          Pi(r.DeletedOn) && s.push(r);
        }
      return s;
    },
    allActions() {
      return this.masterActions.concat(this.artboardActions);
    },
    allActionsMap() {
      return this.allActions.reduce((n, e) => ((n[e.Id] = e), n), {});
    },
    artboardImages() {
      return this.currentProject ? this.currentProject.assetsImages : {};
    },
    assetImage() {
      const n = this.artboard.AssetId;
      return this.artboardImages[n];
    },
    imgStyles() {
      if (!this.currentProject) return {};
      const { platform: n } = this.currentProject;
      let e = "transparent";
      return (
        n && n.IsUsingBackgroundColor && (e = `#${n.BackgroundColor}`),
        { backgroundColor: e }
      );
    },
  },
  watch: {
    zoom() {
      (this.assetIsResized = !this.assetIsResized), this.handleResize();
    },
  },
  created() {
    window.addEventListener("resize", this.handleResize);
  },
  beforeDestroy() {
    window.removeEventListener("resize", this.handleResize);
  },
  methods: {
    checkCmdOrCtrl(n, e) {
      ((Ir && n.metaKey) || (!Ir && n.ctrlKey)) && e();
    },
    getOriginalAction(n) {
      return this.allActionsMap[n];
    },
    assetLoaded(n) {
      (this.loading = !1),
        (this.success = !0),
        this.$nextTick(() => {
          this.assetIsLoaded = !0;
          const e = this.$refs.assetImageElement;
          if (
            ((this.visibleAssetDimensions = this.getImageCurrentSize(e)),
            !this.readonly)
          ) {
            const s = Gr(e).axImgAreaSelect({
              instance: !0,
              handles: !1,
              parent: "#app",
              onSelectEnd: () => this.finishHotspotSelect(s),
            });
          }
        });
    },
    assetErrored() {
      (this.loading = !1), (this.success = !1);
    },
    getImageCurrentSize(n) {
      return n
        ? { width: n.offsetWidth || 1, height: n.offsetHeight || 1 }
        : { height: 1, width: 1 };
    },
    finishHotspotSelect(n) {
      if (!this.currentProject || n == null) return;
      const e = n.getSelection();
      if (e.width === 0 || e.height === 0) return;
      n.cancelSelection(), this.updateVisibleAssetDimensions();
      const s = this.artboard;
      let l;
      this.currentProject.platform &&
      this.currentProject.platform.Device === Vr.Auto
        ? (l = s.Asset.Dimensions.Width)
        : (l = this.currentProject.projectDimensions.width);
      const r = l / this.visibleAssetDimensions.width,
        f = {
          ...Gs(),
          Hotspot: {
            Start: { X: e.x1 * r, Y: e.y1 * r },
            End: { X: e.x2 * r, Y: e.y2 * r },
            Dimensions: { Width: e.width * r, Height: e.height * r },
          },
          CreatedOn: "",
        };
      f.Hotspot = Ss(f.Hotspot);
      const { shortcut: p } = this.currentProject;
      this.$store.commit(new _s(p, s.Id)),
        this.$store.commit(new ws(p, s.Id, f));
    },
    handleResize() {
      this.updateVisibleAssetDimensions();
    },
    updateVisibleAssetDimensions() {
      const n = this.$refs.assetImageElement;
      n && (this.visibleAssetDimensions = this.getImageCurrentSize(n));
    },
    selectSingle() {
      if (!this.currentProject) return;
      const { shortcut: n } = this.currentProject,
        { Id: e } = this.artboard;
      this.$store.commit(new Wr(n, e));
    },
    toggleSelection() {
      if (!this.currentProject) return;
      const { shortcut: n } = this.currentProject,
        { Id: e } = this.artboard;
      this.$store.commit(new As(n, e));
    },
    spanSelection() {
      if (!this.currentProject) return;
      const { shortcut: n } = this.currentProject,
        { Id: e } = this.artboard,
        s = !1;
      this.$store.commit(new Mr(n, e, s));
    },
    extendSpanSelection() {
      if (!this.currentProject) return;
      const { shortcut: n } = this.currentProject,
        { Id: e } = this.artboard,
        s = !0;
      this.$store.commit(new Mr(n, e, s));
    },
    enableTooltip() {
      this.isTooltipEnabled = !0;
    },
    disableTooltip() {
      this.isTooltipEnabled = !1;
    },
    moveTooltip(n) {
      if (this.isTooltipEnabled) {
        const e = this.$el.getBoundingClientRect(),
          s = this.$refs.tooltip;
        s &&
          ((s.style.left = `${n.clientX - e.left}px`),
          (s.style.top = `${n.clientY - e.top - 25}px`));
      }
    },
  },
});
var Oa = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s("ExpoArtboardContainer", {
        attrs: { artboard: e.artboard, draggable: e.draggable },
        on: {
          singleSelect: e.selectSingle,
          toggleSelect: function (l) {
            return e.checkCmdOrCtrl(l, e.toggleSelection);
          },
          spanSelect: e.spanSelection,
          extendSpanSelect: function (l) {
            return e.checkCmdOrCtrl(l, e.extendSpanSelection);
          },
        },
        scopedSlots: e._u([
          {
            key: "default",
            fn: function ({ isSelected: l }) {
              return [
                s(
                  "div",
                  { staticClass: "expo-artboard" },
                  [
                    l && e.assetIsLoaded
                      ? s("ExpoArtboardHeaderFooter", {
                          attrs: {
                            "target-artboard": e.artboard,
                            img: e.$refs.assetImageElement,
                          },
                        })
                      : e._e(),
                    s("img", {
                      ref: "assetImageElement",
                      staticClass: "asset-image",
                      style: e.imgStyles,
                      attrs: { loading: "lazy", src: e.assetImage },
                      on: {
                        load: e.assetLoaded,
                        error: e.assetErrored,
                        click: [
                          function (r) {
                            return r.ctrlKey ||
                              r.shiftKey ||
                              r.altKey ||
                              r.metaKey
                              ? null
                              : e.selectSingle.apply(null, arguments);
                          },
                          function (r) {
                            return !r.ctrlKey ||
                              r.shiftKey ||
                              r.altKey ||
                              r.metaKey
                              ? null
                              : e.checkCmdOrCtrl(r, e.toggleSelection);
                          },
                          function (r) {
                            return !r.metaKey ||
                              r.ctrlKey ||
                              r.shiftKey ||
                              r.altKey
                              ? null
                              : e.checkCmdOrCtrl(r, e.toggleSelection);
                          },
                          function (r) {
                            return !r.shiftKey ||
                              r.ctrlKey ||
                              r.altKey ||
                              r.metaKey
                              ? null
                              : e.spanSelection.apply(null, arguments);
                          },
                          function (r) {
                            return !r.ctrlKey ||
                              !r.shiftKey ||
                              r.altKey ||
                              r.metaKey
                              ? null
                              : e.checkCmdOrCtrl(r, e.extendSpanSelection);
                          },
                          function (r) {
                            return !r.metaKey ||
                              !r.shiftKey ||
                              r.ctrlKey ||
                              r.altKey
                              ? null
                              : e.checkCmdOrCtrl(r, e.extendSpanSelection);
                          },
                        ],
                        mousemove: function (r) {
                          return r.ctrlKey ||
                            r.shiftKey ||
                            r.altKey ||
                            r.metaKey
                            ? null
                            : e.moveTooltip.apply(null, arguments);
                        },
                        mouseover: function (r) {
                          return r.ctrlKey ||
                            r.shiftKey ||
                            r.altKey ||
                            r.metaKey
                            ? null
                            : e.enableTooltip.apply(null, arguments);
                        },
                        mouseleave: e.disableTooltip,
                      },
                    }),
                    e.assetIsLoaded
                      ? e._l(e.allActions, function (r) {
                          return s("ExpoArtboardHotspot", {
                            key: r.Id,
                            attrs: {
                              action: r,
                              artboard: e.artboard,
                              "visible-asset-dimensions":
                                e.visibleAssetDimensions,
                              "get-original-action": e.getOriginalAction,
                            },
                            on: { selectArtboard: e.selectSingle },
                          });
                        })
                      : e._e(),
                    !e.loading && !e.success
                      ? [
                          s("p", [
                            e._v("Error loading asset. "),
                            s("a", { attrs: { href: e.assetImage } }, [
                              e._v("Download"),
                            ]),
                          ]),
                        ]
                      : e._e(),
                    e.isTooltipEnabled
                      ? s(
                          "div",
                          { ref: "tooltip", staticClass: "hotspot-tooltip" },
                          [s("span", [e._v("Click and drag to add hotspot")])]
                        )
                      : e._e(),
                  ],
                  2
                ),
              ];
            },
          },
        ]),
      })
    );
  },
  Ea = [],
  Da = kt(Pa, Oa, Ea, !1, null, "ed17445a", null, null);
const Ia = Da.exports,
  Ma = Qt.extend({
    components: { ExpoArtboard: Ia, Draggable: Vn },
    props: {
      masters: { type: Object, required: !1, default: () => {} },
      isActive: Boolean,
    },
    computed: {
      artboardsOrder: {
        get() {
          return this.currentProject ? this.currentProject.artboardsOrder : [];
        },
        set(n) {
          this.currentProject &&
            this.$store.commit(new Cs(this.currentProject.shortcut, n));
        },
      },
      style() {
        return { flexBasis: `${this.zoom}%`, maxWidth: `${this.zoom}%` };
      },
      archiveMode() {
        return this.currentProject ? this.currentProject.archiveMode : !1;
      },
      readonly() {
        return !this.canModifyArtboards;
      },
      draggable() {
        return !this.archiveMode;
      },
      draggableOptions() {
        return { disabled: !this.draggable, handle: ".drag-handle" };
      },
    },
    watch: {
      isActive() {
        if (this.isActive) {
          const n = document.createEvent("HTMLEvents");
          n.initEvent("resize", !0, !1), document.dispatchEvent(n);
        }
      },
    },
    methods: {
      async artboardOrderChanged(n) {
        if (!this.currentProject) return;
        const { newDraggableIndex: e } = n;
        if (e === void 0) return;
        const s = this.artboardsOrder[e];
        if (s === void 0) return;
        const l = this.artboardsOrder[e + 1];
        await this.$store.dispatch(
          new Ts(this.currentProject.shortcut, s, l, !1)
        );
      },
    },
  });
var ja = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s(
        "Draggable",
        e._b(
          {
            staticClass: "expo-artboard-list",
            on: { end: e.artboardOrderChanged },
            model: {
              value: e.artboardsOrder,
              callback: function (l) {
                e.artboardsOrder = l;
              },
              expression: "artboardsOrder",
            },
          },
          "Draggable",
          e.draggableOptions,
          !1
        ),
        e._l(e.artboardsOrdered, function (l) {
          return s(
            "div",
            {
              key: l.Id,
              staticClass: "expo-artboard-list-item",
              style: e.style,
            },
            [
              s("ExpoArtboard", {
                attrs: {
                  artboard: l,
                  masters: e.masters,
                  readonly: e.readonly,
                  draggable: e.draggable,
                  "is-active": e.isActive,
                },
              }),
            ],
            1
          );
        }),
        0
      )
    );
  },
  Na = [],
  La = kt(Ma, ja, Na, !1, null, "68ed33e3", null, null);
const Ha = La.exports,
  Ra = he.extend({});
var Ba = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s("div", { staticClass: "handoff-onboarding" }, [
        e._v(
          " START BY EXPORTING DESIGNS FROM SKETCH Use Plugins > Handoff > Export Page [[screenshot of sketch menu]] Install the Handoff plugin for Sketch here. "
        ),
      ])
    );
  },
  $a = [],
  Fa = kt(Ra, Ba, $a, !1, null, null, null, null);
const za = Fa.exports,
  qa = Qt.extend({
    components: { AxIcon: di, ExpoArtboardList: Ha, HandoffOnboarding: za },
    props: { isActive: Boolean },
    computed: {
      archiveMode() {
        return this.currentProject ? this.currentProject.archiveMode : !1;
      },
      showUploader() {
        return !this.anyArtboards && this.canAddAssets;
      },
      showHandoffOnboarding() {
        return this.currentProject
          ? this.currentProject.mode === "handoff" &&
              !this.anyArtboards &&
              !this.archiveMode
          : !1;
      },
      masters() {
        var n;
        return ((n = this.currentProject) == null ? void 0 : n.masters) ?? {};
      },
    },
  });
var Va = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s("div", { staticClass: "flex-grow-1" }, [
        s(
          "div",
          {
            staticClass: "expo-workspace",
            class: { "no-artboards": !e.anyArtboards },
          },
          [
            s("ExpoArtboardList", {
              directives: [
                {
                  name: "show",
                  rawName: "v-show",
                  value: e.anyArtboards,
                  expression: "anyArtboards",
                },
              ],
              key: "artboard-list",
              attrs: { masters: e.masters, "is-active": e.isActive },
            }),
            e.showUploader
              ? s(
                  "div",
                  { staticClass: "expo-empty-state" },
                  [
                    s("AxIcon", { attrs: { name: "expo-empty-state" } }),
                    e._m(0),
                  ],
                  1
                )
              : e._e(),
            e.showHandoffOnboarding
              ? s("HandoffOnboarding", { key: "handoff-onboarding" })
              : e._e(),
            s(
              "div",
              {
                directives: [
                  {
                    name: "show",
                    rawName: "v-show",
                    value: !e.anyArtboards && e.archiveMode,
                    expression: "!anyArtboards && archiveMode",
                  },
                ],
                staticClass: "expo-workspace-description",
              },
              [e._m(1)]
            ),
          ],
          1
        ),
      ])
    );
  },
  Wa = [
    function () {
      var n = this,
        e = n._self._c;
      return (
        n._self._setupProxy,
        e("p", [
          n._v("Upload images or sync from"),
          e("br"),
          n._v(" Sketch to view your screens here"),
        ])
      );
    },
    function () {
      var n = this,
        e = n._self._c;
      return (
        n._self._setupProxy,
        e("div", [
          e("p", { staticClass: "expo-workspace-action-call" }, [
            n._v(" No artboards archived "),
          ]),
        ])
      );
    },
  ],
  Ua = kt(qa, Va, Wa, !1, null, "b9618d64", null, null);
const Ka = Ua.exports,
  Ya = Qt.extend({
    components: {
      AxFloatingAddAssetBtn: Wn,
      ExpoEditorFloatingToolbar: Rs,
      ExpoLayoutPanel: qs,
      ExpoSpinner: Ys,
      ExpoWorkspace: Ka,
    },
    props: {
      mode: { type: String, default: "expo" },
      project: fi({ required: !0 }),
      resourceFolder: { type: String, required: !0 },
      resourceAxureFolder: { type: String, required: !0 },
      archiveMode: { type: Boolean, default: !1 },
      externalLayoutPanel: { type: Boolean, required: !1, default: !1 },
      openUploaderOnLoad: { type: Boolean, required: !1, default: !1 },
      isActive: Boolean,
    },
    data() {
      return {
        isArchiveValue: this.archiveMode,
        window: { width: 0, height: 0 },
      };
    },
    computed: {
      isArchive() {
        return this.currentProject ? this.currentProject.archiveMode : !1;
      },
      loading() {
        return this.currentProject ? this.currentProject.isProjectLoading : !1;
      },
      selectedAbCount() {
        return this.currentProject
          ? Object.keys(this.currentProject.selectedArtboards).length
          : 0;
      },
    },
    async created() {
      await this.setupProject(),
        window.addEventListener("resize", this.handleResize),
        this.handleResize(),
        this.$emit("ready");
    },
    destroyed() {
      window.removeEventListener("resize", this.handleResize);
    },
    methods: {
      handleResize() {
        (this.window.width = window.innerWidth),
          (this.window.height = window.innerHeight);
      },
      async toggleArchive(n) {
        (this.isArchiveValue = n),
          this.$store.commit(new ks(this.project.shortcut)),
          await this.setupProject();
      },
      closeOpenedActionMenu(n) {
        if (!this.currentProject) return;
        const { artboardHotspotOpenedMenu: e } = this.currentProject;
        if (e.artboardId || e.actionId) {
          const s = "",
            l = "";
          this.$store.commit(new Ur(this.project.shortcut, s, l, !1));
        }
      },
      async setupProject() {
        await this.$store.dispatch(
          new Ps({
            mode: this.mode,
            shortcut: this.project.shortcut,
            archiveMode: this.isArchiveValue,
            resourceFolder: this.resourceFolder,
            resourceAxureFolder: this.resourceAxureFolder,
            platform: this.platform,
            bgImgUrl: this.bgImgUrl,
          })
        );
      },
    },
  });
var Xa = function () {
    var e = this,
      s = e._self._c;
    return (
      e._self._setupProxy,
      s(
        "div",
        {
          staticClass: "expo-editor",
          class: { "expo-editor-loading": e.loading },
        },
        [
          e.externalLayoutPanel ? e._e() : s("ExpoLayoutPanel"),
          s(
            "div",
            { staticClass: "expo-editor-container" },
            [
              e.selectedAbCount > 1
                ? s("ExpoEditorFloatingToolbar", {
                    attrs: { "selected-items": e.selectedAbCount },
                  })
                : e._e(),
              e.loading
                ? s("ExpoSpinner", {
                    key: "assets-loading",
                    staticClass: "align-self-center",
                  })
                : e._e(),
              e.loading
                ? e._e()
                : s("ExpoWorkspace", {
                    key: "expo-workspace",
                    attrs: { "is-active": e.isActive },
                  }),
              e.loading
                ? e._e()
                : s("AxFloatingAddAssetBtn", {
                    staticClass: "expo-add-assets-floating",
                    attrs: { project: e.project },
                  }),
            ],
            1
          ),
        ],
        1
      )
    );
  },
  Ga = [],
  Za = kt(Ya, Xa, Ga, !1, null, "8f63ce5e", null, null);
const su = Za.exports;
export { su as default };
